ConnectionStringEditor.GetEditStyle(ITypeDescriptorContext) 方法

定義

為指定的內容傳回與連接字串編輯器關聯的編輯樣式。

public:
 override System::Drawing::Design::UITypeEditorEditStyle GetEditStyle(System::ComponentModel::ITypeDescriptorContext ^ context);
public override System.Drawing.Design.UITypeEditorEditStyle GetEditStyle (System.ComponentModel.ITypeDescriptorContext context);
override this.GetEditStyle : System.ComponentModel.ITypeDescriptorContext -> System.Drawing.Design.UITypeEditorEditStyle
Public Overrides Function GetEditStyle (context As ITypeDescriptorContext) As UITypeEditorEditStyle

參數

context
ITypeDescriptorContext

ITypeDescriptorContext,可用來取得其他內容資訊。

傳回

UITypeEditorEditStyle 列舉值,表示所提供之使用者介面的編輯樣式。

備註

根據預設,類別 GetEditStyleConnectionStringEditor 方法會傳回 Modal 值。 IDataEnvironment如果指定的內容支援服務實作,方法會 GetEditStyle 傳回 DropDown 值。

GetEditStyle如果指定的內容不支援方法,此方法會 GetEditStyleNone 傳回值。

適用於

另請參閱