RequiresProvidesDirectiveProcessor.ProvideUniqueId Yöntem
Çağrı yönergesi işlemciye tanıtan bir kimliği sağlar.
Ad alanı: Microsoft.VisualStudio.TextTemplating
Derleme: Microsoft.VisualStudio.TextTemplating.11.0 (Microsoft.VisualStudio.TextTemplating.11.0.dll içinde)
Sözdizimi
'Bildirim
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
Parametreler
- directiveName
Tür: System.String
Yönerge adı.
- arguments
Tür: System.Collections.Generic.IDictionary<String, String>
İçin geçirilen bağımsız değişkenler ProcessDirective bu yöntem çağırma yöntemi.
- requiresArguments
Tür: System.Collections.Generic.IDictionary<String, String>
Standart Parametreler yönergesi işlemci gerektirir.
- providesArguments
Tür: System.Collections.Generic.IDictionary<String, String>
Standart Parametreler yönergesi işlemci sağlar.
Dönüş Değeri
Tür: System.String
A String , yönergesi işlemciye bir çağrı için benzersiz bir kod içerir.
Notlar
Metin şablon aynı yönergesi veya farklı yönergeleri aynı yönerge işlemcide birden fazla arama içerebilir.Bu yöntem, yönergenin işlemci ararken kullanabileceğiniz her yönerge arama için benzersiz bir kimlik sağlar ResolveParameterValue.
Yönerge işlemciler birini kullanabilirsiniz kendi sağlar parametrelerini ayarlayın benzersiz kimliği.arguments Parametreleri ilk benzersiz kimliği, arama ve providesArguments parametreleri ikinci aradığınız.Benzersiz bir kimlik bulunursa, directiveName benzersiz ID olarak kullanılıyor
Bu yöntem çaðrýlýr ProcessDirective.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.
Ayrıca bkz.
Başvuru
RequiresProvidesDirectiveProcessor Sınıf