TypeMapAttribute<TTypeMapGroup> Constructors
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
| TypeMapAttribute<TTypeMapGroup>(String, Type) |
Initializes a new instance of TypeMapAttribute<TTypeMapGroup>. |
| TypeMapAttribute<TTypeMapGroup>(String, Type, Type) |
Initializes a new instance of TypeMapAttribute<TTypeMapGroup>. |
TypeMapAttribute<TTypeMapGroup>(String, Type)
- Source:
- TypeMapAttribute.cs
Initializes a new instance of TypeMapAttribute<TTypeMapGroup>.
public:
TypeMapAttribute(System::String ^ value, Type ^ target);
public TypeMapAttribute(string value, Type target);
new System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup> : string * Type -> System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup>
Public Sub New (value As String, target As Type)
Parameters
- value
- String
The string representation of kthe key.
- target
- Type
The type value.
Remarks
This mapping is unconditionally inserted into the type map.
Applies to
TypeMapAttribute<TTypeMapGroup>(String, Type, Type)
- Source:
- TypeMapAttribute.cs
Initializes a new instance of TypeMapAttribute<TTypeMapGroup>.
public:
TypeMapAttribute(System::String ^ value, Type ^ target, Type ^ trimTarget);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Interop types may be removed by trimming")]
public TypeMapAttribute(string value, Type target, Type trimTarget);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Interop types may be removed by trimming")>]
new System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup> : string * Type * Type -> System.Runtime.InteropServices.TypeMapAttribute<'ypeMapGroup>
Public Sub New (value As String, target As Type, trimTarget As Type)
Parameters
- value
- String
The string representation of key.
- target
- Type
The type value.
- trimTarget
- Type
The type used by the trimmer to determine type map inclusion.
- Attributes
Remarks
This mapping is only included in the type map if trimming observes a type check using the Type represented by trimTarget.