共用方式為


ApplicationName 屬性

Gets or sets the name of the application that has established the connection with the server.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public Property ApplicationName As String
    Get
    Set
'用途
Dim instance As ConnectionSettings
Dim value As String

value = instance.ApplicationName

instance.ApplicationName = value
public string ApplicationName { get; set; }
public:
property String^ ApplicationName {
    String^ get ();
    void set (String^ value);
}
member ApplicationName : string with get, set
function get ApplicationName () : String
function set ApplicationName (value : String)

屬性值

型別:System. . :: . .String
A String value that specifies the name of the application.