Partager via


Méthode GetStandardValues

Creates a collection of string values. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Function GetStandardValues ( _
    context As ITypeDescriptorContext _
) As TypeConverter..::..StandardValuesCollection
'Utilisation
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

Paramètres

Exemples

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);