Type Class
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.
Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.
public ref class Type abstract
public ref class Type abstract : System::Reflection::MemberInfo, System::Reflection::IReflect
public ref class Type abstract : System::Reflection::MemberInfo, System::Reflection::IReflect, System::Runtime::InteropServices::_Type
public abstract class Type
public abstract class Type : System.Reflection.MemberInfo, System.Reflection.IReflect
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
public abstract class Type : System.Reflection.MemberInfo, System.Reflection.IReflect, System.Runtime.InteropServices._Type
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public abstract class Type : System.Reflection.MemberInfo, System.Reflection.IReflect, System.Runtime.InteropServices._Type
type Type = class
type Type = class
inherit MemberInfo
interface IReflect
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
type Type = class
inherit MemberInfo
interface _Type
interface IReflect
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Type = class
inherit MemberInfo
interface _Type
interface IReflect
Public MustInherit Class Type
Public MustInherit Class Type
Inherits MemberInfo
Implements IReflect
Public MustInherit Class Type
Inherits MemberInfo
Implements _Type, IReflect
- Inheritance
-
Type
- Inheritance
- Derived
- Attributes
- Implements
The following example shows a few representative features of Type. The C# typeof
operator (GetType
operator in Visual Basic) is used to get a Type object representing String. From this Type object, the GetMethod method is used to get a MethodInfo representing the String.Substring overload that takes a starting location and a length.
To identify the overload signature, the code example creates a temporary array containing two Type objects representing int
(Integer
in Visual Basic).
The code example uses the MethodInfo to invoke the Substring method on the string "Hello, World!", and displays the result.
#using <System.dll>
using namespace System;
using namespace System::Reflection;
void main()
{
// Get a Type object representing the System.String type.
Type^ t = String::typeid;
MethodInfo^ substr = t->GetMethod("Substring",
gcnew array<Type^> { int::typeid, int::typeid });
Object^ result =
substr->Invoke("Hello, World!", gcnew array<Object^> { 7, 5 });
Console::WriteLine("{0} returned \"{1}\".", substr, result);
}
/* This code example produces the following output:
System.String Substring(Int32, Int32) returned "World".
*/
using System;
using System.Reflection;
class Example
{
static void Main()
{
Type t = typeof(String);
MethodInfo substr = t.GetMethod("Substring",
new Type[] { typeof(int), typeof(int) });
Object result =
substr.Invoke("Hello, World!", new Object[] { 7, 5 });
Console.WriteLine("{0} returned \"{1}\".", substr, result);
}
}
/* This code example produces the following output:
System.String Substring(Int32, Int32) returned "World".
*/
open System
let t = typeof<String>
let substr = t.GetMethod("Substring", [| typeof<int>; typeof<int> |])
let result = substr.Invoke("Hello, World!", [| 7; 5 |])
printfn $"{substr} returned \"{result}\"."
(* This code example produces the following output:
System.String Substring(Int32, Int32) returned "World".
*)
Imports System.Reflection
Module Example
Sub Main()
Dim t As Type = GetType(String)
Dim substr As MethodInfo = t.GetMethod("Substring", _
New Type() { GetType(Integer), GetType(Integer) })
Dim result As Object = _
substr.Invoke("Hello, World!", New Object() { 7, 5 })
Console.WriteLine("{0} returned ""{1}"".", substr, result)
End Sub
End Module
' This code example produces the following output:
'
'System.String Substring(Int32, Int32) returned "World".
For more information about this API, see Supplemental API remarks for Type.
When you inherit from Type
, you must override the following members:
- Assembly
- AssemblyQualifiedName
- BaseType
- FullName
- GetAttributeFlagsImpl()
- GetConstructorImpl(BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])
- GetConstructors(BindingFlags)
- GetElementType()
- GetEvent(String, BindingFlags)
- GetEvents(BindingFlags)
- GetField(String, BindingFlags)
- GetFields(BindingFlags)
- GetInterface(String, Boolean)
- GetInterfaces()
- GetMethodImpl(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])
- GetMethods(BindingFlags)
- GetNestedType(String, BindingFlags)
- GetNestedTypes(BindingFlags)
- GetProperties(BindingFlags)
- GetPropertyImpl(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])
- GUID
- HasElementTypeImpl()
- InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])
- IsArrayImpl()
- IsByRefImpl()
- IsCOMObjectImpl()
- IsPointerImpl()
- IsPrimitiveImpl()
- Module
- Namespace
- TypeHandle
- UnderlyingSystemType
- GetCustomAttributes(Boolean)
- GetCustomAttributes(Type, Boolean)
- IsDefined(Type, Boolean)
- Name
Delimiter |
Separates names in the namespace of the Type. This field is read-only. |
Empty |
Represents an empty array of type Type. This field is read-only. |
Filter |
Represents the member filter used on attributes. This field is read-only. |
Filter |
Represents the case-sensitive member filter used on names. This field is read-only. |
Filter |
Represents the case-insensitive member filter used on names. This field is read-only. |
Missing |
Represents a missing value in the Type information. This field is read-only. |
Assembly |
Gets the Assembly in which the type is declared. For generic types, gets the Assembly in which the generic type is defined. |
Assembly |
Gets the assembly-qualified name of the type, which includes the name of the assembly from which this Type object was loaded. |
Attributes |
Gets the attributes associated with the Type. |
Base |
Gets the type from which the current Type directly inherits. |
Contains |
Gets a value indicating whether the current Type object has type parameters that have not been replaced by specific types. |
Custom |
Gets a collection that contains this member's custom attributes. (Inherited from MemberInfo) |
Declaring |
Gets a MethodBase that represents the declaring method, if the current Type represents a type parameter of a generic method. |
Declaring |
Gets the type that declares the current nested type or generic type parameter. |
Default |
Gets a reference to the default binder, which implements internal rules for selecting the appropriate members to be called by InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). |
Full |
Gets the fully qualified name of the type, including its namespace but not its assembly. |
Generic |
Gets a combination of GenericParameterAttributes flags that describe the covariance and special constraints of the current generic type parameter. |
Generic |
Gets the position of the type parameter in the type parameter list of the generic type or method that declared the parameter, when the Type object represents a type parameter of a generic type or a generic method. |
Generic |
Gets an array of the generic type arguments for this type. |
GUID |
Gets the GUID associated with the Type. |
Has |
Gets a value indicating whether the current Type encompasses or refers to another type; that is, whether the current Type is an array, a pointer, or is passed by reference. |
Is |
Gets a value indicating whether the Type is abstract and must be overridden. |
Is |
Gets a value indicating whether the string format attribute |
Is |
Gets a value that indicates whether the type is an array. |
Is |
Gets a value indicating whether the string format attribute |
Is |
Gets a value indicating whether the fields of the current type are laid out automatically by the common language runtime. |
Is |
Gets a value indicating whether the Type is passed by reference. |
Is |
Gets a value that indicates whether the type is a byref-like structure. |
Is |
Gets a value indicating whether the Type is a class or a delegate; that is, not a value type or interface. |
Is |
Gets a value that indicates whether this MemberInfo object is part of an assembly held in a collectible AssemblyLoadContext. (Inherited from MemberInfo) |
Is |
Gets a value indicating whether the Type is a COM object. |
Is |
Gets a value that indicates whether this object represents a constructed generic type. You can create instances of a constructed generic type. |
Is |
Gets a value indicating whether the Type can be hosted in a context. |
Is |
Gets a value indicating whether the current Type represents an enumeration. |
Is |
Gets a value indicating whether the fields of the current type are laid out at explicitly specified offsets. |
Is |
Gets a value that indicates whether the current Type is a function pointer. |
Is |
Gets a value that indicates whether the current Type represents a type parameter in the definition of a generic method. |
Is |
Gets a value indicating whether the current Type represents a type parameter in the definition of a generic type or method. |
Is |
Gets a value indicating whether the current type is a generic type. |
Is |
Gets a value indicating whether the current Type represents a generic type definition, from which other generic types can be constructed. |
Is |
Gets a value that indicates whether the current Type represents a type parameter in the definition of a generic type. |
Is |
Gets a value indicating whether the Type has a ComImportAttribute attribute applied, indicating that it was imported from a COM type library. |
Is |
Gets a value indicating whether the Type is an interface; that is, not a class or a value type. |
Is |
Gets a value indicating whether the fields of the current type are laid out sequentially, in the order that they were defined or emitted to the metadata. |
Is |
Gets a value indicating whether the Type is marshaled by reference. |
Is |
Gets a value indicating whether the current Type object represents a type whose definition is nested inside the definition of another type. |
Is |
Gets a value indicating whether the Type is nested and visible only within its own assembly. |
Is |
Gets a value indicating whether the Type is nested and visible only to classes that belong to both its own family and its own assembly. |
Is |
Gets a value indicating whether the Type is nested and visible only within its own family. |
Is |
Gets a value indicating whether the Type is nested and visible only to classes that belong to either its own family or to its own assembly. |
Is |
Gets a value indicating whether the Type is nested and declared private. |
Is |
Gets a value indicating whether a class is nested and declared public. |
Is |
Gets a value indicating whether the Type is not declared public. |
Is |
Gets a value indicating whether the Type is a pointer. |
Is |
Gets a value indicating whether the Type is one of the primitive types. |
Is |
Gets a value indicating whether the Type is declared public. |
Is |
Gets a value indicating whether the Type is declared sealed. |
Is |
Gets a value that indicates whether the current type is security-critical or security-safe-critical at the current trust level, and therefore can perform critical operations. |
Is |
Gets a value that indicates whether the current type is security-safe-critical at the current trust level; that is, whether it can perform critical operations and can be accessed by transparent code. |
Is |
Gets a value that indicates whether the current type is transparent at the current trust level, and therefore cannot perform critical operations. |
Is |
Obsolete.
Gets a value indicating whether the Type is binary serializable. |
Is |
Gets a value that indicates whether the type is a signature type. |
Is |
Gets a value indicating whether the type has a name that requires special handling. |
Is |
Gets a value that indicates whether the type is an array type that can represent only a single-dimensional array with a zero lower bound. |
Is |
Gets a value that indicates whether the type is a type definition. |
Is |
Gets a value indicating whether the string format attribute |
Is |
Gets a value that indicates whether the current Type is an unmanaged function pointer. |
Is |
Gets a value indicating whether the Type is a value type. |
Is |
Gets a value that indicates whether the type is an array type that can represent a multi-dimensional array or an array with an arbitrary lower bound. |
Is |
Gets a value indicating whether the Type can be accessed by code outside the assembly. |
Member |
Gets a MemberTypes value indicating that this member is a type or a nested type. |
Metadata |
Gets a value that identifies a metadata element. (Inherited from MemberInfo) |
Module |
Gets the module (the DLL) in which the current Type is defined. |
Name |
When overridden in a derived class, gets the name of the current type. |
Name |
Gets the name of the current member. (Inherited from MemberInfo) |
Namespace |
Gets the namespace of the Type. |
Reflected |
Gets the class object that was used to obtain this member. |
Struct |
Gets a StructLayoutAttribute that describes the layout of the current type. |
Type |
Gets the handle for the current Type. |
Type |
Gets the initializer for the type. |
Underlying |
Indicates the type provided by the common language runtime that represents this type. |
Equals(Object) |
Determines if the underlying system type of the current Type object is the same as the underlying system type of the specified Object. |
Equals(Type) |
Determines if the underlying system type of the current Type is the same as the underlying system type of the specified Type. |
Find |
Returns an array of Type objects representing a filtered list of interfaces implemented or inherited by the current Type. |
Find |
Returns a filtered array of MemberInfo objects of the specified member type. |
Get |
Gets the number of dimensions in an array. |
Get |
When overridden in a derived class, implements the Attributes property and gets a bitwise combination of enumeration values that indicate the attributes associated with the Type. |
Get |
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
Searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints. |
Get |
Searches for a constructor whose parameters match the specified argument types, using the specified binding constraints. |
Get |
Searches for a public instance constructor whose parameters match the types in the specified array. |
Get |
When overridden in a derived class, searches for a constructor whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
Returns all the public constructors defined for the current Type. |
Get |
When overridden in a derived class, searches for the constructors defined for the current Type, using the specified |
Get |
When overridden in a derived class, returns an array of all custom attributes applied to this member. (Inherited from MemberInfo) |
Get |
When overridden in a derived class, returns an array of custom attributes applied to this member and identified by Type. (Inherited from MemberInfo) |
Get |
Returns a list of CustomAttributeData objects representing data about the attributes that have been applied to the target member. (Inherited from MemberInfo) |
Get |
Searches for the members defined for the current Type whose DefaultMemberAttribute is set. |
Get |
When overridden in a derived class, returns the Type of the object encompassed or referred to by the current array, pointer or reference type. |
Get |
Returns the name of the constant that has the specified value, for the current enumeration type. |
Get |
Returns the names of the members of the current enumeration type. |
Get |
Returns the underlying type of the current enumeration type. |
Get |
Returns an array of the values of the constants in the current enumeration type. |
Get |
Retrieves an array of the values of the underlying type constants of this enumeration type. |
Get |
When overridden in a derived class, returns the EventInfo object representing the specified event, using the specified binding constraints. |
Get |
Returns the EventInfo object representing the specified public event. |
Get |
Returns all the public events that are declared or inherited by the current Type. |
Get |
When overridden in a derived class, searches for events that are declared or inherited by the current Type, using the specified binding constraints. |
Get |
Searches for the specified field, using the specified binding constraints. |
Get |
Searches for the public field with the specified name. |
Get |
Returns all the public fields of the current Type. |
Get |
When overridden in a derived class, searches for the fields defined for the current Type, using the specified binding constraints. |
Get |
When overridden in a derived class, returns the calling conventions of the current function pointer Type. |
Get |
When overridden in a derived class, returns the parameter types of the current function pointer Type. |
Get |
When overridden in a derived class, returns the return type of the current function pointer Type. |
Get |
Returns an array of Type objects that represent the type arguments of a closed generic type or the type parameters of a generic type definition. |
Get |
Returns an array of Type objects that represent the constraints on the current generic type parameter. |
Get |
Returns a Type object that represents a generic type definition from which the current generic type can be constructed. |
Get |
Returns the hash code for this instance. |
Get |
When overridden in a derived class, searches for the specified interface, specifying whether to do a case-insensitive search for the interface name. |
Get |
Searches for the interface with the specified name. |
Get |
Returns an interface mapping for the specified interface type. |
Get |
When overridden in a derived class, gets all the interfaces implemented or inherited by the current Type. |
Get |
Searches for the specified members, using the specified binding constraints. |
Get |
Searches for the specified members of the specified member type, using the specified binding constraints. |
Get |
Searches for the public members with the specified name. |
Get |
Returns all the public members of the current Type. |
Get |
When overridden in a derived class, searches for the members defined for the current Type, using the specified binding constraints. |
Get |
Searches for the MemberInfo on the current Type that matches the specified MemberInfo. |
Get |
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints. |
Get |
Searches for the specified method whose parameters match the specified argument types, using the specified binding constraints. |
Get |
Searches for the specified method, using the specified binding constraints. |
Get |
Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints. |
Get |
Searches for the specified method whose parameters match the specified generic parameter count and argument types, using the specified binding constraints. |
Get |
Searches for the specified public method whose parameters match the specified generic parameter count, argument types and modifiers. |
Get |
Searches for the specified public method whose parameters match the specified generic parameter count and argument types. |
Get |
Searches for the specified public method whose parameters match the specified argument types and modifiers. |
Get |
Searches for the specified public method whose parameters match the specified argument types. |
Get |
Searches for the public method with the specified name. |
Get |
When overridden in a derived class, searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
When overridden in a derived class, searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention. |
Get |
Returns all the public methods of the current Type. |
Get |
When overridden in a derived class, searches for the methods defined for the current Type, using the specified binding constraints. |
Get |
When overridden in a derived class, searches for the specified nested type, using the specified binding constraints. |
Get |
Searches for the public nested type with the specified name. |
Get |
Returns the public types nested in the current Type. |
Get |
When overridden in a derived class, searches for the types nested in the current Type, using the specified binding constraints. |
Get |
When overridden in a derived class, returns the optional custom modifiers of the current Type. |
Get |
Returns all the public properties of the current Type. |
Get |
When overridden in a derived class, searches for the properties of the current Type, using the specified binding constraints. |
Get |
Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints. |
Get |
Searches for the specified property, using the specified binding constraints. |
Get |
Searches for the specified public property whose parameters match the specified argument types and modifiers. |
Get |
Searches for the specified public property whose parameters match the specified argument types. |
Get |
Searches for the public property with the specified name and return type. |
Get |
Searches for the specified public property whose parameters match the specified argument types. |
Get |
Searches for the public property with the specified name. |
Get |
When overridden in a derived class, searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints. |
Get |
When overridden in a derived class, returns the required custom modifiers of the current Type. |
Get |
Gets the current Type. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Get |
Gets the Type with the specified name, specifying whether to throw an exception if the type is not found and whether to perform a case-sensitive search. |
Get |
Gets the Type with the specified name, performing a case-sensitive search and specifying whether to throw an exception if the type is not found. |
Get |
Gets the type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if the type is not found, and optionally providing custom methods to resolve the assembly and the type. |
Get |
Gets the type with the specified name, specifying whether to throw an exception if the type is not found, and optionally providing custom methods to resolve the assembly and the type. |
Get |
Gets the type with the specified name, optionally providing custom methods to resolve the assembly and the type. |
Get |
Gets the Type with the specified name, performing a case-sensitive search. |
Get |
Gets the types of the objects in the specified array. |
Get |
Gets the underlying type code of the specified Type. |
Get |
Returns the underlying type code of this Type instance. |
Get |
Gets the type associated with the specified class identifier (CLSID), specifying whether to throw an exception if an error occurs while loading the type. |
Get |
Gets the type associated with the specified class identifier (CLSID) from the specified server, specifying whether to throw an exception if an error occurs while loading the type. |
Get |
Gets the type associated with the specified class identifier (CLSID) from the specified server. |
Get |
Gets the type associated with the specified class identifier (CLSID). |
Get |
Gets the type referenced by the specified type handle. |
Get |
Gets the type associated with the specified program identifier (ProgID), specifying whether to throw an exception if an error occurs while loading the type. |
Get |
Gets the type associated with the specified program identifier (progID) from the specified server, specifying whether to throw an exception if an error occurs while loading the type. |
Get |
Gets the type associated with the specified program identifier (progID) from the specified server, returning null if an error is encountered while loading the type. |
Get |
Gets the type associated with the specified program identifier (ProgID), returning null if an error is encountered while loading the Type. |
Get |
Gets the handle for the Type of a specified object. |
Has |
When overridden in a derived class, implements the HasElementType property and determines whether the current Type encompasses or refers to another type; that is, whether the current Type is an array, a pointer, or is passed by reference. |
Has |
(Inherited from MemberInfo) |
Invoke |
Invokes the specified member, using the specified binding constraints and matching the specified argument list and culture. |
Invoke |
When overridden in a derived class, invokes the specified member, using the specified binding constraints and matching the specified argument list, modifiers and culture. |
Invoke |
Invokes the specified member, using the specified binding constraints and matching the specified argument list. |
Is |
When overridden in a derived class, implements the IsArray property and determines whether the Type is an array. |
Is |
Determines whether an instance of a specified type |
Is |
Determines whether the current type can be assigned to a variable of the specified |
Is |
When overridden in a derived class, implements the IsByRef property and determines whether the Type is passed by reference. |
Is |
When overridden in a derived class, implements the IsCOMObject property and determines whether the Type is a COM object. |
Is |
Implements the IsContextful property and determines whether the Type can be hosted in a context. |
Is |
When overridden in a derived class, indicates whether one or more attributes of the specified type or of its derived types is applied to this member. (Inherited from MemberInfo) |
Is |
Returns a value that indicates whether the specified value exists in the current enumeration type. |
Is |
Determines whether two COM types have the same identity and are eligible for type equivalence. |
Is |
Determines whether the specified object is an instance of the current Type. |
Is |
Implements the IsMarshalByRef property and determines whether the Type is marshaled by reference. |
Is |
When overridden in a derived class, implements the IsPointer property and determines whether the Type is a pointer. |
Is |
When overridden in a derived class, implements the IsPrimitive property and determines whether the Type is one of the primitive types. |
Is |
Determines whether the current Type derives from the specified Type. |
Is |
Implements the IsValueType property and determines whether the Type is a value type; that is, not a class or an interface. |
Make |
Returns a Type object representing a one-dimensional array of the current type, with a lower bound of zero. |
Make |
Returns a Type object representing an array of the current type, with the specified number of dimensions. |
Make |
Returns a Type object that represents the current type when passed as a |
Make |
Returns a signature type object that can be passed into the |
Make |
Creates a generic signature type, which allows third party reimplementations of Reflection to fully support the use of signature types in querying type members. |
Make |
Substitutes the elements of an array of types for the type parameters of the current generic type definition and returns a Type object representing the resulting constructed type. |
Make |
Returns a Type object that represents a pointer to the current type. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Reflection |
Obsolete.
Gets the Type with the specified name, specifying whether to perform a case-sensitive search and whether to throw an exception if the type is not found. The type is loaded for reflection only, not for execution. |
To |
Returns a |
Equality(Type, Type) |
Indicates whether two Type objects are equal. |
Inequality(Type, Type) |
Indicates whether two Type objects are not equal. |
_Member |
Maps a set of names to a corresponding set of dispatch identifiers. (Inherited from MemberInfo) |
_Member |
Gets a Type object representing the MemberInfo class. (Inherited from MemberInfo) |
_Member |
Retrieves the type information for an object, which can then be used to get the type information for an interface. (Inherited from MemberInfo) |
_Member |
Retrieves the number of type information interfaces that an object provides (either 0 or 1). (Inherited from MemberInfo) |
_Member |
Provides access to properties and methods exposed by an object. (Inherited from MemberInfo) |
_Type. |
Maps a set of names to a corresponding set of dispatch identifiers. |
_Type. |
Retrieves the type information for an object, which can then be used to get the type information for an interface. |
_Type. |
Retrieves the number of type information interfaces that an object provides (either 0 or 1). |
_Type. |
Provides access to properties and methods exposed by an object. |
Get |
Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
Get |
Retrieves a custom attribute of a specified type that is applied to a specified member. |
Get |
Retrieves a custom attribute of a specified type that is applied to a specified member, and optionally inspects the ancestors of that member. |
Get |
Retrieves a custom attribute of a specified type that is applied to a specified member. |
Get |
Retrieves a collection of custom attributes that are applied to a specified member, and optionally inspects the ancestors of that member. |
Get |
Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. |
Get |
Retrieves a collection of custom attributes of a specified type that are applied to a specified member. |
Get |
Retrieves a collection of custom attributes that are applied to a specified member. |
Get |
Retrieves a collection of custom attributes of a specified type that are applied to a specified member, and optionally inspects the ancestors of that member. |
Get |
Retrieves a collection of custom attributes of a specified type that are applied to a specified member. |
Is |
Indicates whether custom attributes of a specified type are applied to a specified member, and, optionally, applied to its ancestors. |
Is |
Indicates whether custom attributes of a specified type are applied to a specified member. |
Get |
Returns the TypeInfo representation of the specified type. |
Get |
Gets a metadata token for the given member, if available. |
Has |
Returns a value that indicates whether a metadata token is available for the specified member. |
Get |
Retrieves an object that represents the specified event. |
Get |
Retrieves a collection that represents all the events defined on a specified type. |
Get |
Retrieves an object that represents a specified field. |
Get |
Retrieves a collection that represents all the fields defined on a specified type. |
Get |
Retrieves an object that represents a specified method. |
Get |
Retrieves a collection that represents all methods defined on a specified type. |
Get |
Retrieves a collection that represents all the properties defined on a specified type. |
Get |
Retrieves an object that represents a specified property. |
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Get |
|
Is |
|
Is |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1 |
UWP | 10.0 |
This type is thread safe.
.NET feedback
.NET is an open source project. Select a link to provide feedback: