IUIObjectMetadata.TryGetType(String, IUIObjectTypeInfo) 方法

定義

透過使用指定的類型名稱及該項目集合的命名空間名稱,回傳一個實體資料模型(EDM)類型的物件。

public:
 bool TryGetType(System::String ^ typeKey, [Runtime::InteropServices::Out] Microsoft::SqlServer::Management::UI::VSIntegration::ObjectExplorer::IUIObjectTypeInfo ^ % typeInfo);
public bool TryGetType(string typeKey, out Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.IUIObjectTypeInfo typeInfo);
abstract member TryGetType : string * IUIObjectTypeInfo -> bool
Public Function TryGetType (typeKey As String, ByRef typeInfo As IUIObjectTypeInfo) As Boolean

參數

typeKey
String

字體使用的按鍵。

typeInfo
IUIObjectTypeInfo

關於該類型的資訊。

傳回

true如果存在符合搜尋條件的類型;否則,。 false

適用於