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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應