Méthode IDynamicValues.GetStandardValues

Creates a collection of string values. Ne faites pas directement référence à 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

Valeur de retour

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

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

Voir aussi

Référence

IDynamicValues Interface

Espace de noms Microsoft.SqlServer.Management.Sdk.Sfc

DynamicValuesAttribute