次の方法で共有


SmoException.SetHelpContext メソッド

参照先の例外のヘルプ コンテキスト値を設定します。

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

構文

'宣言
Protected Friend Function SetHelpContext ( _
    resource As String _
) As SmoException
'使用
Dim resource As String 
Dim returnValue As SmoException 

returnValue = Me.SetHelpContext(resource)
protected internal SmoException SetHelpContext(
    string resource
)
protected public:
SmoException^ SetHelpContext(
    String^ resource
)
member SetHelpContext : 
        resource:string -> SmoException
function SetHelpContext(
    resource : String
) : SmoException

パラメーター

  • resource
    型: System.String
    参照先の例外のヘルプ コンテキストを含むリソース ファイルを示す String 値です。

戻り値

型: Microsoft.SqlServer.Management.Smo.SmoException
ヘルプ コンテキストを使用する例外を示す SmoException オブジェクトの値です。

使用例

SMO 例外の処理

関連項目

参照

SmoException クラス

Microsoft.SqlServer.Management.Smo 名前空間