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.
示例
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);