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 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기