Class DebuggerTypeProxyAttribute
- Namespace
- System.Diagnostics
- Assembly
- mscorlib.dll
Specifies the display proxy for a type.
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true)]
public sealed class DebuggerTypeProxyAttribute : Attribute
- Inheritance
-
DebuggerTypeProxyAttribute
- Inherited Members
- Extension Methods
Remarks
Available only in mscorlib build with support for System.Reflection.
Constructors
DebuggerTypeProxyAttribute(string)
Initializes a new instance of the DebuggerTypeProxyAttribute class using the type name of the proxy.
public DebuggerTypeProxyAttribute(string typeName)
Parameters
typeName
stringThe type name of the proxy type.
DebuggerTypeProxyAttribute(Type)
Initializes a new instance of the DebuggerTypeProxyAttribute class using the type of the proxy.
public DebuggerTypeProxyAttribute(Type type)
Parameters
type
TypeThe proxy type.
Exceptions
Properties
ProxyTypeName
Gets the type name of the proxy type.
public string ProxyTypeName { get; }
Property Value
- string
The type name of the proxy type.
Target
Gets or sets the target type for the attribute.
public Type Target { get; set; }
Property Value
- Type
The target type for the attribute.
Exceptions
- ArgumentNullException
Target is set to null.
TargetTypeName
Gets or sets the name of the target type.
public string TargetTypeName { get; set; }
Property Value
- string
The name of the target type.