Delen via


SmoException.SetHelpContext Method

Sets the Help context value for the referenced exception.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Protected Friend Function SetHelpContext ( _
    resource As String _
) As SmoException
'Usage
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

Parameters

  • resource
    Type: System.String
    A String value that specifies the resource file that contains the Help context for the referenced exception.

Return Value

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