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
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, 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
- 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.