共用方式為


SetHelpContext 方法

Sets the help context value for the referenced exception. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
Protected Friend Function SetHelpContext ( _
    resource As String _
) As SfcException
'用途
Dim resource As String
Dim returnValue As SfcException

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

參數

  • resource
    型別:System. . :: . .String
    The resource file that contains the help context for the referenced exception.

傳回值

型別:Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcException
An SfcException object that specifies the exception with the help context.