次の方法で共有


Information.ErrorLogPath プロパティ

SQL Server のインスタンス上に格納されたエラー ログのファイル ディレクトリを取得します。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ErrorLogPath As String 
    Get
'使用
Dim instance As Information 
Dim value As String 

value = instance.ErrorLogPath
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string ErrorLogPath { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ ErrorLogPath {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ErrorLogPath : string
function get ErrorLogPath () : String

プロパティ値

型: System.String
SQL Server のインスタンスのエラー ログ ファイルの場所を示す String 値です。

使用例

SMO での SQL Server の構成

関連項目

参照

Information クラス

Microsoft.SqlServer.Management.Smo 名前空間