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
command
Type: System.ComponentModel.Design.CommandIDA command that identifies the operation.
context
Type: System.ObjectAn 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.