Metoda RequiresProvidesDirectiveProcessor.ProvideUniqueId —
Zawiera identyfikator, który identyfikuje wywołanie dyrektywa procesora.
Przestrzeń nazw: Microsoft.VisualStudio.TextTemplating
Zestaw: Microsoft.VisualStudio.TextTemplating.11.0 (w Microsoft.VisualStudio.TextTemplating.11.0.dll)
Składnia
'Deklaracja
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
Parametry
- directiveName
Typ: System.String
Nazwa tej dyrektywy.
- arguments
Typ: System.Collections.Generic.IDictionary<String, String>
Argumenty, które zostały przekazane do ProcessDirective metodę, która jest wywołaniem tej metody.
- requiresArguments
Typ: System.Collections.Generic.IDictionary<String, String>
Standardowe parametry, które wymaga procesora w dyrektywie.
- providesArguments
Typ: System.Collections.Generic.IDictionary<String, String>
Standard parametry, które przewiduje dyrektywa procesora.
Wartość zwracana
Typ: System.String
A String , zawiera unikatowy identyfikator dla wywołania do procesora w dyrektywie.
Uwagi
Szablon tekst może zawierać więcej niż jedno wywołanie do tej samej dyrektywy lub do różnych dyrektyw, w tym samym procesorze dyrektywa.Ta metoda zapewnia unikatowy identyfikator dla każdego wywołania dyrektywa, która dyrektywa procesora można używać podczas wywoływania ResolveParameterValue.
Dyrektywa procesorów można użyć jednej z ich zawiera parametry, aby określić unikatowy identyfikator.arguments Parametry są najpierw wyszukiwane unikatowy identyfikator i providesArguments parametry są przeszukiwane w drugim.Jeśli zostanie znaleziony nie unikatowy identyfikator, directiveName jest używana jako unikatowy identyfikator.
Ta metoda jest wywoływana ProcessDirective.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..
Zobacz też
Informacje
RequiresProvidesDirectiveProcessor Klasa