Поделиться через


Метод GetStandardValues

Creates a collection of string values. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server.

Пространство имен:  Microsoft.SqlServer.Management.Sdk.Sfc
Сборка:  Microsoft.SqlServer.Management.Sdk.Sfc (в Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Синтаксис

'Декларация
Function GetStandardValues ( _
    context As ITypeDescriptorContext _
) As TypeConverter..::..StandardValuesCollection
'Применение
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

Параметры

Примеры

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