Share via


HostTypeAttribute Class

Definition

Specifies the relationship between a type and its canonical name.

public ref class HostTypeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)]
public sealed class HostTypeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Interface | System.AttributeTargets.Struct, AllowMultiple=false, Inherited=false)>]
type HostTypeAttribute = class
    inherit Attribute
Public NotInheritable Class HostTypeAttribute
Inherits Attribute
Inheritance
HostTypeAttribute
Attributes

Constructors

HostTypeAttribute(String)

Initializes a new instance of the HostTypeAttribute class.

Properties

CanonicalName

Gets the canonical name of the type.

ProxyType

Gets or sets a Type instance that describes the proxy type.

SourceInterfaceGuid

For COM only. Gets or sets the GUID of the source interface for a coclass in the host application's object model.

Applies to