PackageRelationshipSelector Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the PackageRelationshipSelector class.
public:
PackageRelationshipSelector(Uri ^ sourceUri, System::IO::Packaging::PackageRelationshipSelectorType selectorType, System::String ^ selectionCriteria);
public PackageRelationshipSelector (Uri sourceUri, System.IO.Packaging.PackageRelationshipSelectorType selectorType, string selectionCriteria);
new System.IO.Packaging.PackageRelationshipSelector : Uri * System.IO.Packaging.PackageRelationshipSelectorType * string -> System.IO.Packaging.PackageRelationshipSelector
Public Sub New (sourceUri As Uri, selectorType As PackageRelationshipSelectorType, selectionCriteria As String)
Parameters
- sourceUri
- Uri
The uniform resource identifier (URI) of the PackagePart or the Package (SourceUri
="/") that owns the relationship.
- selectorType
- PackageRelationshipSelectorType
The type of the selectionCriteria
, either by relationship Id or relationship Type.
- selectionCriteria
- String
The qualification string that is used to select the relationships based on the selectorType
.
Exceptions
sourceUri
or selectionCriteria
is null
.
The selectorType
parameter is not valid.
The selectorType
parameter is Id but selectionCriteria
is not a valid XML Schema Definition (XSD) identifier (ID).
The selectionCriteria
is not valid for the specified selectorType
.
-or-
The sourceUri
is not the Package root ("/") and is also not a valid PackagePart URI.