ActivationContext<T>.IsConvertableTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IsConvertableTo(String, Type) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets or sets a value that indicates whether this object is convertible to the specified object. |
IsConvertableTo<V>(String) |
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.] Gets or sets a value that indicates whether this object is convertible to the specified object. |
IsConvertableTo(String, Type)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets or sets a value that indicates whether this object is convertible to the specified object.
public:
virtual bool IsConvertableTo(System::String ^ name, Type ^ type);
public virtual bool IsConvertableTo (string name, Type type);
abstract member IsConvertableTo : string * Type -> bool
override this.IsConvertableTo : string * Type -> bool
Public Overridable Function IsConvertableTo (name As String, type As Type) As Boolean
Parameters
- name
- String
The specified name.
- type
- Type
The specified type.
Returns
true
if this object is convertible to the specified object; otherwise, false
.
Exceptions
The name
parameter is a null reference (Nothing in Visual Basic) or empty.
The name
parameter does not contain a valid name.
Applies to
IsConvertableTo<V>(String)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Gets or sets a value that indicates whether this object is convertible to the specified object.
public:
generic <typename V>
virtual bool IsConvertableTo(System::String ^ name);
public virtual bool IsConvertableTo<V> (string name);
abstract member IsConvertableTo : string -> bool
override this.IsConvertableTo : string -> bool
Public Overridable Function IsConvertableTo(Of V) (name As String) As Boolean
Type Parameters
- V
Parameters
- name
- String
The specified name.
Returns
true
if this object is convertible to the specified object; otherwise, false
.