Class DebuggerTypeProxyAttribute
Specifies the display proxy for a type.
Inherited Members
Namespace: System.Diagnostics
Assembly: mscorlib.dll
Syntax
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = true)]
public sealed class DebuggerTypeProxyAttribute : Attribute
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.
Declaration
public DebuggerTypeProxyAttribute(string typeName)
Parameters
Type | Name | Description |
---|---|---|
string | typeName | The type name of the proxy type. |
DebuggerTypeProxyAttribute(Type)
Initializes a new instance of the DebuggerTypeProxyAttribute class using the type of the proxy.
Declaration
public DebuggerTypeProxyAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The proxy type. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
Properties
ProxyTypeName
Gets the type name of the proxy type.
Declaration
public string ProxyTypeName { get; }
Property Value
Type | Description |
---|---|
string | The type name of the proxy type. |
Target
Gets or sets the target type for the attribute.
Declaration
public Type Target { get; set; }
Property Value
Type | Description |
---|---|
Type | The target type for the attribute. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Target is set to null. |
TargetTypeName
Gets or sets the name of the target type.
Declaration
public string TargetTypeName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the target type. |