ComAliasNameAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Parameter Or AttributeTargets.ReturnValue, Inherited:=False)> _ <ComVisibleAttribute(True)> _ Public NotInheritable Class ComAliasNameAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter|AttributeTargets.ReturnValue, Inherited=false)] [ComVisibleAttribute(true)] public sealed class ComAliasNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property|AttributeTargets::Field|AttributeTargets::Parameter|AttributeTargets::ReturnValue, Inherited=false)] [ComVisibleAttribute(true)] public ref class ComAliasNameAttribute sealed : public Attribute


OLE_COLOR は、次のタイプ ライブラリでは int のエイリアスです。インポート中に、ComAliasNameAttribute でマークされた Color アクセサの引数は、タイプ ライブラリによって OLE_COLOR として参照されることを示します。
typedef int OLE_COLOR; interface Baz { HRESULT SetColor([in] OLE_COLOR cl); HRESULT GetColor([out, retval] OLE_COLOR *cl); }
Interface Baz Sub SetColor( <ComAliasName("stdole.OLE_COLOR")> cl As Integer) Function GetColor() As <ComAliasName("stdole.OLE_COLOR")> Integer End Interface
interface Baz { void SetColor([ComAliasName("stdole.OLE_COLOR")] int cl); [return: ComAliasName("stdole.OLE_COLOR")] int GetColor(); }

System.Attribute
System.Runtime.InteropServices.ComAliasNameAttribute


Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- ComAliasNameAttribute クラスのページへのリンク