IVsDataProvider.GetUnsupportedReason 方法 (CommandID, Object)
取得說明的當地語系化字串作業失敗並不支援。
命名空間: Microsoft.VisualStudio.Data.Core
組件: Microsoft.VisualStudio.Data.Core (在 Microsoft.VisualStudio.Data.Core.dll 中)
語法
'宣告
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
參數
- command
型別:System.ComponentModel.Design.CommandID
識別作業的命令。
- context
型別:System.Object
表示內容作業存在的物件。
傳回值
型別:System.String
說明的當地語系化字串指定的作業失敗,不支援,則此作業實際上不支援物件;否則, nullNull 參照 (即 Visual Basic 中的 Nothing)。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | command 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
[<ANY>] | DDEX 提供者的 GetUnsupportedReason 實作擲回例外狀況。 |
備註
這個方法 GetUnsupportedReason 方法的委派,並將 Empty 做為 source 參數的值。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。