Метод IDynamicValues.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
Параметры
- context
Тип: System.ComponentModel.ITypeDescriptorContext
A ITypeDescriptorContext object that contains the context information.
Возвращаемое значение
Тип: System.ComponentModel.TypeConverter.StandardValuesCollection
A TypeConverter.StandardValuesCollection object.
Примеры
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);