_AppDomain.ToString 方法

定义

为 COM 对象提供对 ToString() 方法的与版本无关的访问。Provides COM objects with version-independent access to the ToString() method.

public:
 System::String ^ ToString();
public string ToString ();
abstract member ToString : unit -> string
Public Function ToString () As String

返回

一个字符串,通过连接字符串“Name:”、应用程序域的友好名称以及上下文策略的字符串表示或字符串“There are no context policies”而成。A string formed by concatenating the literal string "Name:", the friendly name of the application domain, and either string representations of the context policies or the string "There are no context policies."

注解

请参见AppDomain.ToString方法。See the AppDomain.ToString method.

适用于