Share via


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

'Declaration
Function GetUnsupportedReason ( _
    command As CommandID, _
    context As Object _
) As String
string GetUnsupportedReason(
    CommandID command,
    Object context
)
String^ GetUnsupportedReason(
    CommandID^ command, 
    Object^ context
)
abstract GetUnsupportedReason : 
        command:CommandID * 
        context:Object -> string
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, nulla null reference (Nothing in Visual Basic).

Exceptions

Exception Condition
ArgumentNullException

The command parameter is nulla 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.

.NET Framework Security

See Also

Reference

IVsDataProvider Interface

GetUnsupportedReason Overload

Microsoft.VisualStudio.Data.Core Namespace