Partilhar via


Método IVsExpansionSession.SetFieldDefault

Define o valor padrão para o campo especificado.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function SetFieldDefault ( _
    bstrFieldName As String, _
    bstrNewValue As String _
) As Integer
int SetFieldDefault(
    string bstrFieldName,
    string bstrNewValue
)
int SetFieldDefault(
    [InAttribute] String^ bstrFieldName, 
    [InAttribute] String^ bstrNewValue
)
abstract SetFieldDefault : 
        bstrFieldName:string * 
        bstrNewValue:string -> int
function SetFieldDefault(
    bstrFieldName : String, 
    bstrNewValue : String
) : int

Parâmetros

  • bstrFieldName
    Tipo: String

    [in] Uma seqüência de caracteres que contém o nome do campo.

  • bstrNewValue
    Tipo: String

    [in] Uma seqüência de caracteres que contém o valor padrão para usar.

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De textmgr2.idl:

HRESULT IVsExpansionSession::SetFieldDefault(
   [in] BSTR bstrFieldName,
   [in] BSTR bstrNewValue
);

Normalmente, um trecho de código especifica valores padrão para todos os campos. Este método é usado para substituir o valor padrão para um campo especificado.

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionSession Interface

Namespace Microsoft.VisualStudio.TextManager.Interop