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.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示