ExpansionFunction.GetDefaultValue Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém o valor padrão para a função de expansão.
Sobrecargas
| GetDefaultValue(String, Int32) |
Obtém o valor padrão da função de expansão. |
| GetDefaultValue() |
Obtém o valor padrão da função de expansão. |
Comentários
O valor padrão para uma função de expansão é obtido do arquivo de modelo de trecho de código. Um padrão não precisa ser especificado para uma função de expansão.
GetDefaultValue(String, Int32)
Obtém o valor padrão da função de expansão.
public:
virtual int GetDefaultValue([Runtime::InteropServices::Out] System::String ^ % bstrValue, [Runtime::InteropServices::Out] int % hasCurrentValue);
public int GetDefaultValue (out string bstrValue, out int hasCurrentValue);
abstract member GetDefaultValue : string * int -> int
override this.GetDefaultValue : string * int -> int
Public Function GetDefaultValue (ByRef bstrValue As String, ByRef hasCurrentValue As Integer) As Integer
Parâmetros
- bstrValue
- String
fora Retorna o valor padrão se ele existir, caso contrário, retorna uma cadeia de caracteres vazia.
- hasCurrentValue
- Int32
fora Retorna true se bstrValue não for null .
Retornos
S_OK.
Implementações
Aplica-se a
GetDefaultValue()
Obtém o valor padrão da função de expansão.
public:
virtual System::String ^ GetDefaultValue();
public:
virtual Platform::String ^ GetDefaultValue();
virtual std::wstring GetDefaultValue();
public virtual string GetDefaultValue ();
abstract member GetDefaultValue : unit -> string
override this.GetDefaultValue : unit -> string
Public Overridable Function GetDefaultValue () As String
Retornos
O valor padrão, se existir, caso contrário null .
Comentários
O método base retorna o valor retornado de uma chamada para o GetCurrentValue método.