AppContext.GetData(String) AppContext.GetData(String) AppContext.GetData(String) AppContext.GetData(String) Method

定义

返回分配给当前应用程序域的已命名数据元素的值。Returns the value of the named data element assigned to the current application domain.

public:
 static System::Object ^ GetData(System::String ^ name);
public static object GetData (string name);
static member GetData : string -> obj
Public Shared Function GetData (name As String) As Object

参数

name
String String String String

数据元素的名称。The name of the data element.

返回

如果 name 识别出已命名值,则为 name 的值;否则为 nullThe value of name, if name identifies a named value; otherwise, null.

适用于