ServiceXNameTypeConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 方法

定义

将指定的值转换为 XName 实例。Converts the specified value to a XName instance.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object

参数

context
ITypeDescriptorContext

类型描述符上下文。The type descriptor context.

culture
CultureInfo

当前区域性。The current culture.

value
Object

要转换的对象。The object to convert.

返回

Object

转换后的值。The converted value.

注解

如果要转换的对象中未指定命名空间,则此方法将添加默认命名空间。This method will not add a default namespace if one is not specified in the object being converted.

适用于