共用方式為


DefaultLog 屬性

Gets the default log file for the instance of SQL Server.

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

語法

'宣告
<DisplayNameKeyAttribute("Server_DefaultLogName")> _
<DisplayDescriptionKeyAttribute("Server_DefaultLogDesc")> _
ReadOnly Property DefaultLog As String
    Get
'用途
Dim instance As IServerSetupFacet
Dim value As String

value = instance.DefaultLog
[DisplayNameKeyAttribute("Server_DefaultLogName")]
[DisplayDescriptionKeyAttribute("Server_DefaultLogDesc")]
string DefaultLog { get; }
[DisplayNameKeyAttribute(L"Server_DefaultLogName")]
[DisplayDescriptionKeyAttribute(L"Server_DefaultLogDesc")]
property String^ DefaultLog {
    String^ get ();
}
[<DisplayNameKeyAttribute("Server_DefaultLogName")>]
[<DisplayDescriptionKeyAttribute("Server_DefaultLogDesc")>]
abstract DefaultLog : string
function get DefaultLog () : String

屬性值

型別:System. . :: . .String
A String value that specifies the default log file for the instance of SQL Server.

範例

設定屬性