HslColorConverter.ConvertFrom 方法 (ITypeDescriptorContext, CultureInfo, Object)
使用指定的上下文和区域性信息将给定的对象转换为此转换器的类型。
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public Overrides Function ConvertFrom ( _
context As ITypeDescriptorContext, _
culture As CultureInfo, _
value As Object _
) As Object
public override Object ConvertFrom(
ITypeDescriptorContext context,
CultureInfo culture,
Object value
)
参数
- context
类型:System.ComponentModel.ITypeDescriptorContext
提供一个布局上下文的 ITypeDescriptorContext。
- culture
类型:System.Globalization.CultureInfo
使用的 CultureInfo 为当前区域性。
- value
类型:System.Object
将转换为的对象。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。