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.

傳回

轉換的值。The converted value.

備註

如果轉換後的物件中並未指定預設命名空間,則此方法不會加入預設命名空間。This method will not add a default namespace if one is not specified in the object being converted.

適用於