RequiresProvidesDirectiveProcessor.ProvideUniqueId メソッド
ディレクティブ プロセッサの呼び出しを識別する ID を提供します。
名前空間: Microsoft.VisualStudio.TextTemplating
アセンブリ: Microsoft.VisualStudio.TextTemplating.11.0 (Microsoft.VisualStudio.TextTemplating.11.0.dll 内)
構文
'宣言
Protected Overridable Function ProvideUniqueId ( _
directiveName As String, _
arguments As IDictionary(Of String, String), _
requiresArguments As IDictionary(Of String, String), _
providesArguments As IDictionary(Of String, String) _
) As String
protected virtual string ProvideUniqueId(
string directiveName,
IDictionary<string, string> arguments,
IDictionary<string, string> requiresArguments,
IDictionary<string, string> providesArguments
)
protected:
virtual String^ ProvideUniqueId(
String^ directiveName,
IDictionary<String^, String^>^ arguments,
IDictionary<String^, String^>^ requiresArguments,
IDictionary<String^, String^>^ providesArguments
)
abstract ProvideUniqueId :
directiveName:string *
arguments:IDictionary<string, string> *
requiresArguments:IDictionary<string, string> *
providesArguments:IDictionary<string, string> -> string
override ProvideUniqueId :
directiveName:string *
arguments:IDictionary<string, string> *
requiresArguments:IDictionary<string, string> *
providesArguments:IDictionary<string, string> -> string
protected function ProvideUniqueId(
directiveName : String,
arguments : IDictionary<String, String>,
requiresArguments : IDictionary<String, String>,
providesArguments : IDictionary<String, String>
) : String
パラメーター
- directiveName
型 : System.String
ディレクティブの名前。
- arguments
型 : System.Collections.Generic.IDictionary<String, String>
このメソッドの呼び出し元の ProcessDirective メソッドに渡された引数。
- requiresArguments
型 : System.Collections.Generic.IDictionary<String, String>
ディレクティブ プロセッサで必要な標準パラメーター。
- providesArguments
型 : System.Collections.Generic.IDictionary<String, String>
ディレクティブ プロセッサで提供される標準パラメーター。
戻り値
型 : System.String
ディレクティブ プロセッサの呼び出しの一意の ID を格納している String。
解説
テキスト テンプレートには、同じディレクティブまたは同じディレクティブ プロセッサ内の異なるディレクティブへの 1 つ以上の呼び出しを含めることができます。このメソッドは、ディレクティブ プロセッサが ResolveParameterValue を呼び出すときに使用できる各ディレクティブ呼び出しに対して、一意の ID を提供します。
ディレクティブ プロセッサは、provides パラメーターのいずれかを使用して、一意の ID を指定することができます。arguments パラメーターが最初に一意の ID を検索され、providesArguments パラメーターが 2 番目に検索されます。一意の ID が見つからない場合は、directiveName が一意の ID として使用されます。
このメソッドは ProcessDirective によって呼び出されます。
.NET Framework セキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。
参照
関連項目
RequiresProvidesDirectiveProcessor クラス