編集

次の方法で共有


WindowsRuntimeMetadata.ResolveNamespace Method

Definition

Locates the Windows Metadata files for a specified namespace, given a list of locations to search.

Overloads

ResolveNamespace(String, IEnumerable<String>)

Locates the Windows Metadata files for the specified namespace, given the specified locations to search.

ResolveNamespace(String, String, IEnumerable<String>)

Locates the Windows Metadata files for the specified namespace, given the specified locations to search.

ResolveNamespace(String, IEnumerable<String>)

Locates the Windows Metadata files for the specified namespace, given the specified locations to search.

public:
 static System::Collections::Generic::IEnumerable<System::String ^> ^ ResolveNamespace(System::String ^ namespaceName, System::Collections::Generic::IEnumerable<System::String ^> ^ packageGraphFilePaths);
[System.Security.SecurityCritical]
public static System.Collections.Generic.IEnumerable<string> ResolveNamespace (string namespaceName, System.Collections.Generic.IEnumerable<string> packageGraphFilePaths);
[<System.Security.SecurityCritical>]
static member ResolveNamespace : string * seq<string> -> seq<string>
Public Shared Function ResolveNamespace (namespaceName As String, packageGraphFilePaths As IEnumerable(Of String)) As IEnumerable(Of String)

Parameters

namespaceName
String

The namespace to resolve.

packageGraphFilePaths
IEnumerable<String>

The application paths to search for Windows Metadata files, or null to search only for Windows Metadata files from the operating system installation.

Returns

An enumerable list of strings that represent the Windows Metadata files that define namespaceName.

Attributes

Exceptions

The operating system version does not support the Windows Runtime.

namespaceName is null.

Remarks

Calling this method overload is equivalent to calling the ResolveNamespace(String, String, IEnumerable<String>) method overload and specifying null for the windowsSdkFilePath parameter.

Applies to

ResolveNamespace(String, String, IEnumerable<String>)

Locates the Windows Metadata files for the specified namespace, given the specified locations to search.

public:
 static System::Collections::Generic::IEnumerable<System::String ^> ^ ResolveNamespace(System::String ^ namespaceName, System::String ^ windowsSdkFilePath, System::Collections::Generic::IEnumerable<System::String ^> ^ packageGraphFilePaths);
[System.Security.SecurityCritical]
public static System.Collections.Generic.IEnumerable<string> ResolveNamespace (string namespaceName, string windowsSdkFilePath, System.Collections.Generic.IEnumerable<string> packageGraphFilePaths);
[<System.Security.SecurityCritical>]
static member ResolveNamespace : string * string * seq<string> -> seq<string>
Public Shared Function ResolveNamespace (namespaceName As String, windowsSdkFilePath As String, packageGraphFilePaths As IEnumerable(Of String)) As IEnumerable(Of String)

Parameters

namespaceName
String

The namespace to resolve.

windowsSdkFilePath
String

The path to search for Windows Metadata files provided by the SDK, or null to search for Windows Metadata files from the operating system installation.

packageGraphFilePaths
IEnumerable<String>

The application paths to search for Windows Metadata files.

Returns

An enumerable list of strings that represent the Windows Metadata files that define namespaceName.

Attributes

Exceptions

The operating system version does not support the Windows Runtime.

namespaceName is null.

Remarks

The path you specify for windowsSdkFilePath is searched only for namespaces that begin with Windows.

Applies to