Interface ymylmx
Namespace: Iron.Pdf.Extensions
Assembly: IronPdf.dll
Syntax
public interface ymylmx
Implement ymylmx to declare the exact file version, NuGet package name, and NuGet package version that an IronPDF extension component requires at runtime. The interface lives in the Iron.Pdf.Extensions namespace and acts as a versioning contract: IronPDF's extension loader calls all three members to validate that a loaded assembly matches the expected dependency before activating it.
The three members divide cleanly by concern. GetExpectedFileVersion() returns a Version object representing the binary file version the extension was built against. GetExpectedNuGetName() returns the NuGet package identifier as a string, for example a package name like IronPdf.Extensions.SomeFeature. GetExpectedNuGetVersion() returns the NuGet version string for that package, enabling the loader to cross-check both the identity and the version of the dependency in a single pass.
Because the interface carries no state, an implementing class is typically a lightweight descriptor with no constructor arguments. The loader resolves implementors through reflection, so the class only needs to be visible to the extension host assembly. Coding against this contract rather than hard-coded strings keeps version mismatches detectable early, at load time, rather than at the point of first use.
Explore the broader IronPDF extension model at https://ironpdf.com/docs/ and review dependency and compatibility guidance at https://ironpdf.com/get-started/.
Methods
GetExpectedFileVersion()
Declaration
Version GetExpectedFileVersion()
Returns
| Type | Description |
|---|---|
| System.Version |
GetExpectedNuGetName()
Declaration
string GetExpectedNuGetName()
Returns
| Type | Description |
|---|---|
| System.String |
GetExpectedNuGetVersion()
Declaration
string GetExpectedNuGetVersion()
Returns
| Type | Description |
|---|---|
| System.String |