IDynamicValues.GetStandardValues メソッド
文字列値のコレクションを作成します。 このメンバーをコード内で直接参照しないでください。このメンバーは、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
コンテキスト情報を保持する ITypeDescriptorContext オブジェクトです。
戻り値
型: System.ComponentModel.TypeConverter.StandardValuesCollection
TypeConverter.StandardValuesCollection オブジェクトです。
使用例
次の例では、2 つの文字列値を使用して、コレクションを作成します。
public TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
{
string[] collationName = new string[] { "first item", "second item" };
return new TypeConverter.StandardValuesCollection(collationName);