ModelElement 要素の ID を取得します。この要素 ID がモデル要素の modelbus の参照をビルドするために使用されます。
名前空間: Microsoft.VisualStudio.Modeling.Integration
アセンブリ: Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0 (Microsoft.VisualStudio.Modeling.Sdk.Integration.11.0.dll 内)
構文
'宣言
Protected Overridable Function GetElementId ( _
mel As ModelElement _
) As String
protected virtual string GetElementId(
ModelElement mel
)
パラメーター
- mel
型 : Microsoft.VisualStudio.Modeling.ModelElement
たとえば、要素 ID を要求する ModelElement
戻り値
型 : System.String
一意の文字を表すアダプターによって、オブジェクトのマネージ内の ModelElement
解説
適切 <code> XMLClassData< <c> と c> の SerializeIdAMP_ <c> LT/c> のプロパティがこの </w の DomainClass に関連付けるな既定の実装はを返します mel.Id.ToString () </code>: t></w: r></w: <w:r> <w:rPr> <w:rStyle w:val="ParameterReference"/> rPr>mel</w: <w:t> t></w: r> (<w:r> <w:tc> 既定値)。そのほかの場合に true< と <w:r> <w:t> c> <c>、アダプターの作成者は、一意の ID を提供する必要があります。モニカー (など)
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。