ConnectionStringEditor.GetEditStyle(ITypeDescriptorContext) Método

Definição

Retorna o estilo de edição associado ao editor da cadeia de conexão para o contexto especificado.Returns the editing style that is associated with the connection string editor for the specified context.

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

Parâmetros

context
ITypeDescriptorContext

Um ITypeDescriptorContext a ser usado para obter informações de contexto adicionais.An ITypeDescriptorContext to use to gain additional context information.

Retornos

UITypeEditorEditStyle

Um valor da enumeração UITypeEditorEditStyle que indica o estilo de edição da interface do usuário fornecida.An UITypeEditorEditStyle enumeration value that indicates the editing style for the provided user interface.

Comentários

Por padrão, o GetEditStyle método da ConnectionStringEditor classe retorna o Modal valor.By default, the GetEditStyle method of the ConnectionStringEditor class returns the Modal value. Se houver IDataEnvironment suporte para uma implementação de serviço no contexto especificado, o GetEditStyle método retornará o DropDown valor.If an IDataEnvironment service implementation is supported in the specified context, the GetEditStyle method returns the DropDown value.

Se o GetEditStyle método não tiver suporte no contexto especificado, o GetEditStyle método retornará o None valor.If the GetEditStyle method is not supported in the specified context, the GetEditStyle method returns the None value.

Aplica-se a

Confira também