Share via


CollectorException.SetHelpContext Method

Sets the help context based on the resource string that is passed.

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

Syntax

'Declaration
Protected Friend Function SetHelpContext ( _
    resource As String _
) As CollectorException
'Usage
Dim resource As String 
Dim returnValue As CollectorException 

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

Parameters

  • resource
    Type: System.String
    A [T:System:String] value that is the name of the resource that threw the exception.

Return Value

Type: Microsoft.SqlServer.Management.Collector.CollectorException
An object of type CollectorException containing data collector exceptions.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

See Also

Reference

CollectorException Class

Microsoft.SqlServer.Management.Collector Namespace