次の方法で共有


DefaultLog プロパティ

SQL Server のインスタンスの既定のログ ファイルを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

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

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

プロパティ値

型: System. . :: . .String
SQL Server のインスタンスの既定のログ ファイルを示す String 値です。