翻訳への提案を行います
 
他のユーザーによる提案:

progress indicator
他の提案はありません。
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ
Visual Studio 2010
Visual Studio
Visual Studio の言語
Visual C++
Visual C++ のリファレンス
C++ 属性リファレンス
 uuid
すべて縮小/すべて展開 すべて縮小
コンテンツの表示:   英語と日本語を並べて表示コンテンツの表示: 英語と日本語を並べて表示
Visual Studio 2010 - Visual C++
uuid (C++ Attributes)

Specifies the unique ID for a class or interface.

[ uuid(
   "uuid"
) ]
uuid

A 128-bit, unique identifier.

If the definition of an interface or class does not specify the uuid C++ attribute, then the Visual C++ compiler will provide one. When you specify a uuid, you must include the quotes.

If you do not specify uuid, then the compiler will generate the same GUID for interfaces or classes with the same name in different attribute projects on a machine.

You can use Uuidgen.exe or Guidgen.exe to generate your own unique IDs. (To run either of these tools, click Start and click Run on the menu. Then enter the name of the required tool.)

When used in a project that does not also use ATL, specifying the uuid attribute is the same as specifying the uuid __declspec modifier. To retrieve the uuid of a class, you can use __uuidof

See the bindable example for a sample use of uuid.

Attribute Context

Applies to

class, struct, interface, union, enum

Repeatable

No

Required attributes

None

Invalid attributes

None

For more information about the attribute contexts, see Attribute Contexts.

Visual Studio 2010 - Visual C++
uuid (C++ 属性)

クラスまたはインターフェイスの一意の ID を指定します。

[ uuid(
   "uuid"
) ]
uuid

128 ビットの一意の識別子。

インターフェイスまたはクラスの定義で C++ 属性 uuid を指定しない場合は、Visual C++ コンパイラが指定します。 uuid を指定する場合は、引用符を含める必要があります。

uuid を指定しない場合は、コンピューター上にある異なる属性のプロジェクトの同名のインターフェイスやクラスに対して、1 つの GUID がコンパイラによって生成されます。

Uuidgen.exe または Guidgen.exe を使用すると、独自の ID を生成できます。 これらのツールのいずれかを実行するには、[スタート] をクリックし、メニューの [ファイル名を指定して実行] をクリックします。 次に、必要なツールの名前を入力します。

ATL も使用しないプロジェクトでは、uuid 属性の指定は uuid の __declspec 修飾子の指定と同じです。 クラスの uuid の取得には __uuidof を使用できます。

uuid の使用例については、「bindable」を参照してください。

属性コンテキスト

対象

classstructinterfaceunionenum

複数回の適用

不要

必要な属性

[なし]

無効な属性

[なし]

属性コンテキストの詳細については、「属性コンテキスト」を参照してください。

コミュニティ コンテンツ   コミュニティ コンテンツとは
新しいコンテンツの追加 RSS  注釈
Processing
© 2012 Microsoft. All rights reserved. 使用条件 | 商標 | プライバシー
Page view tracker