Class
VsdxPackageValidator
OfficeIMO.Visio
Validates and optionally fixes Visio VSDX packages for common structural issues.
Inheritance
- object
- VsdxPackageValidator
Constructors
VsdxPackageValidator 2 overloads
public VsdxPackageValidator() #Creates a validator with default resource limits.
public VsdxPackageValidator(VsdxPackageValidationLimits? limits) #Creates a validator with caller-supplied resource limits.
Parameters
- limits OfficeIMO.Visio.VsdxPackageValidationLimits?
- Limits to snapshot for this validator instance.
Methods
public bool FixFile(string inputPath, string outputPath) #Validates and fixes the specified VSDX file.
Parameters
- inputPath string
- Path to the input VSDX file.
- outputPath string
- Path where the fixed file will be saved.
Returns
bool true if the file was fixed successfully; otherwise, false.public bool FixFileStreaming(string inputPath, string outputPath) #Streaming fix: writes a new VSDX with corrected [Content_Types].xml and minimal relationships for document and pages.
Parameters
- inputPath string
- outputPath string
Returns
boolpublic bool ValidateFile(string inputPath) #Validates the specified VSDX file.
Parameters
- inputPath string
- Path to the input VSDX file.
Returns
bool true if no errors were found; otherwise, false.public bool ValidateFileStreaming(string inputPath) #Streaming (no-extract) validation prototype. Phase 1: content types and relationships; Phase 2: basic pages structure.
Parameters
- inputPath string
Returns
bool