PackageRelationshipSelector 构造函数

定义

初始化 PackageRelationshipSelector 类的新实例。

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)

参数

sourceUri
Uri

拥有关系的统一资源标识符(PackagePartURI PackageSourceUri )。

selectorType
PackageRelationshipSelectorType

关系selectionCriteria或关系Id的类型Type

selectionCriteria
String

用于根据 选择关系的限定字符串。

例外

sourceUriselectionCriterianull.

参数 selectorType 无效。

参数selectorType不是IdselectionCriteria有效的 XML 架构定义(XSD)标识符(ID)。

selectionCriteria 参数对指定的 selectorType值无效。

-或-

不是sourceUriPackage根(“/”),也不是有效的 PackagePart URI。

适用于

另请参阅