ComAliasNameAttribute

ComAliasNameAttribute

System.Runtime.InteropServices (mscorlib.dll) sealed class

This attribute is automatically added when COM type libraries are imported into the .NET runtime. COM uses alias names for various data types (such as typedef [public] int SHOE_SIZE ). When you import a COM object that uses such an alias, .NET automatically decorates each parameter, property, field, and return value with this attribute. If you need to know the name of the COM alias, use the System.Reflection API to see if this custom attribute has been attached to the parameter, property, field, or return value you are interested in.

Since .NET automatically converts COM aliases to the underlying .NET types when it imports a type library, you do not need to use this attribute for typical applications (tool developers will find this attribute useful, though).

 public sealed class  ComAliasNameAttribute  : Attribute {  // Public Constructors  public  ComAliasNameAttribute  (string   alias   );  // Public Instance Properties  public string  Value  {get; } } 

Hierarchy

System.Object System.Attribute ComAliasNameAttribute

Valid On

Property, Field, Parameter, ReturnValue



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net