Metodo IVsExpansionSession.SetFieldDefault
Imposta il valore predefinito per il campo specificato.
Spazio dei nomi: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
Sintassi
'Dichiarazione
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
Parametri
bstrFieldName
Tipo: String[in] Stringa contenente il nome del campo.
bstrNewValue
Tipo: String[in] Stringa contenente il valore predefinito da utilizzare.
Valore restituito
Tipo: Int32
Se il metodo ha esito positivo, restituisce S_OK.Se non riesce, restituisce un codice di errore.
Note
Firma COM
da textmgr2.idl:
HRESULT IVsExpansionSession::SetFieldDefault(
[in] BSTR bstrFieldName,
[in] BSTR bstrNewValue
);
in genere, un frammento di codice specifica i valori predefiniti per tutti i campi. Questo metodo viene utilizzato per eseguire l'override del valore predefinito per un campo specificato.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.