Condividi tramite


Metodo IDynamicValues.GetStandardValues

Creates a collection of string values. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Function GetStandardValues ( _
    context As ITypeDescriptorContext _
) As TypeConverter.StandardValuesCollection
'Utilizzo
Dim instance As IDynamicValues 
Dim context As ITypeDescriptorContext 
Dim returnValue As TypeConverter.StandardValuesCollection 

returnValue = instance.GetStandardValues(context)
TypeConverter.StandardValuesCollection GetStandardValues(
    ITypeDescriptorContext context
)
TypeConverter.StandardValuesCollection^ GetStandardValues(
    ITypeDescriptorContext^ context
)
abstract GetStandardValues : 
        context:ITypeDescriptorContext -> TypeConverter.StandardValuesCollection
function GetStandardValues(
    context : ITypeDescriptorContext
) : TypeConverter.StandardValuesCollection

Parametri

Valore restituito

Tipo: System.ComponentModel.TypeConverter.StandardValuesCollection
A TypeConverter.StandardValuesCollection object.

Esempi

The following example creates a collection with two string values.

public TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
string[] collationName = new string[] { "first item", "second item" };
return new TypeConverter.StandardValuesCollection(collationName);

Vedere anche

Riferimento

IDynamicValues Interfaccia

Spazio dei nomi Microsoft.SqlServer.Management.Sdk.Sfc

DynamicValuesAttribute