Udostępnij za pośrednictwem


Metoda IDynamicValues.GetStandardValues

Tworzy kolekcja wartości typu ciąg.Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw:  Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Składnia

'Deklaracja
Function GetStandardValues ( _
    context As ITypeDescriptorContext _
) As TypeConverter..::..StandardValuesCollection
'Użycie
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

Parametry

Przykłady

Poniższy przykład tworzy kolekcja z dwóch wartości ciąg.

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