IVsDataProvider.GetUnsupportedReason Method (CommandID, Object)

Gets a localized string that explains why an operation is not supported.

Namespace:  Microsoft.VisualStudio.Data.Core
Assembly:  Microsoft.VisualStudio.Data.Core (in Microsoft.VisualStudio.Data.Core.dll)

Syntax

'宣言
Function GetUnsupportedReason ( _
    command As CommandID, _
    context As Object _
) As String
'使用
Dim instance As IVsDataProvider
Dim command As CommandID
Dim context As Object
Dim returnValue As String

returnValue = instance.GetUnsupportedReason(command, _
    context)
string GetUnsupportedReason(
    CommandID command,
    Object context
)
String^ GetUnsupportedReason(
    CommandID^ command, 
    Object^ context
)
function GetUnsupportedReason(
    command : CommandID, 
    context : Object
) : String

Parameters

  • context
    Type: System.Object

    An object that represents the context in which the operation exists.

Return Value

Type: System.String

A localized string that explains why the specified operation is not supported, if the operation is in fact not supported; otherwise, a null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

The command parameter is a null reference (Nothing in Visual Basic).

[<ANY>]

The DDEX provider's GetUnsupportedReason implementation threw an exception.

Remarks

This method delegates to the GetUnsupportedReason method, passing Empty as the value of the source parameter.

Permissions

See Also

Reference

IVsDataProvider Interface

IVsDataProvider Members

GetUnsupportedReason Overload

Microsoft.VisualStudio.Data.Core Namespace