語言

TextExpression.SetNamespaces 方法

定義

設定 Text 表達式的命名空間。

多載

名稱 Description
SetNamespaces(Object, String[])

設定文字表達式的命名空間,並指定目標與命名空間。

SetNamespaces(Object, IList<String>)

設定文字表達式的命名空間,並指定目標與命名空間。

SetNamespaces(Object, String[])

設定文字表達式的命名空間,並指定目標與命名空間。

public:
 static void SetNamespaces(System::Object ^ target, ... cli::array <System::String ^> ^ namespaces);
public static void SetNamespaces(object target, params string[] namespaces);
static member SetNamespaces : obj * string[] -> unit
Public Shared Sub SetNamespaces (target As Object, ParamArray namespaces As String())

參數

target
Object

目標。

namespaces
String[]

命名空間的陣列。

適用於

SetNamespaces(Object, IList<String>)

設定文字表達式的命名空間,並指定目標與命名空間。

public:
 static void SetNamespaces(System::Object ^ target, System::Collections::Generic::IList<System::String ^> ^ namespaces);
public static void SetNamespaces(object target, System.Collections.Generic.IList<string> namespaces);
static member SetNamespaces : obj * System.Collections.Generic.IList<string> -> unit
Public Shared Sub SetNamespaces (target As Object, namespaces As IList(Of String))

參數

target
Object

目標。

namespaces
IList<String>

命名空間的通用清單。

適用於