共用方式為


SetHelpContext 方法

Sets the Help context value for the referenced exception.

命名空間:  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
    A String value that specifies the resource file that contains the Help context for the referenced exception.

傳回值

型別:Microsoft.SqlServer.Management.Smo. . :: . .SmoException
An SmoException object value that specifies the exception with the Help context.