UtilityClass.TryProcessUserReplacementStrings Method
Processes user-specified replacement strings for the specified query.
Namespace: Microsoft.ConfigurationManagement.AdminConsole
Assembly: Microsoft.ConfigurationManagement (in microsoft.configurationmanagement.dll)
Usage
'Usage
Dim sender As Object
Dim parent As ScopeNode
Dim queryString As String
Dim rootConnectionNode As SmsSiteConnectionNode
Dim resultObject As IResultObject
Dim queryProcessingAssembly As AssemblyDescription
Dim processedQuery As String
Dim contextInformation As Dictionary(Of String, Object)
Dim returnValue As PreprocessorResult
returnValue = UtilityClass.TryProcessUserReplacementStrings(sender, parent, queryString, rootConnectionNode, resultObject, queryProcessingAssembly, processedQuery, contextInformation)
Syntax
'Declaration
<PermissionSetAttribute(SecurityAction.InheritanceDemand, Name:="FullTrust")> _
<PermissionSetAttribute(SecurityAction.LinkDemand, Name:="FullTrust")> _
Public Shared Function TryProcessUserReplacementStrings ( _
sender As Object, _
parent As ScopeNode, _
queryString As String, _
rootConnectionNode As SmsSiteConnectionNode, _
resultObject As IResultObject, _
queryProcessingAssembly As AssemblyDescription, _
<OutAttribute> ByRef processedQuery As String, _
<OutAttribute> ByRef contextInformation As Dictionary(Of String, Object) _
) As PreprocessorResult
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust")]
[PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust")]
public static PreprocessorResult TryProcessUserReplacementStrings (
Object sender,
ScopeNode parent,
string queryString,
SmsSiteConnectionNode rootConnectionNode,
IResultObject resultObject,
AssemblyDescription queryProcessingAssembly,
out string processedQuery,
out Dictionary<string,Object> contextInformation
)
[PermissionSetAttribute(SecurityAction::InheritanceDemand, Name=L"FullTrust")]
[PermissionSetAttribute(SecurityAction::LinkDemand, Name=L"FullTrust")]
public:
static PreprocessorResult TryProcessUserReplacementStrings (
Object^ sender,
ScopeNode^ parent,
String^ queryString,
SmsSiteConnectionNode^ rootConnectionNode,
IResultObject^ resultObject,
AssemblyDescription^ queryProcessingAssembly,
[OutAttribute] String^% processedQuery,
[OutAttribute] Dictionary<String^, Object^>^% contextInformation
)
/** @attribute PermissionSetAttribute(SecurityAction.InheritanceDemand, Name="FullTrust") */
/** @attribute PermissionSetAttribute(SecurityAction.LinkDemand, Name="FullTrust") */
public static PreprocessorResult TryProcessUserReplacementStrings (
Object sender,
ScopeNode parent,
String queryString,
SmsSiteConnectionNode rootConnectionNode,
IResultObject resultObject,
AssemblyDescription queryProcessingAssembly,
/** @attribute OutAttribute() */ /** @ref */ String processedQuery,
/** @attribute OutAttribute() */ /** @ref */ Dictionary<String,Object> contextInformation
)
Parameters
- sender
[in] System.Object instance that indicates the sender of an event to process replacement strings.
- parent
[in] Microsoft.ManagementConsole.ScopeNode object for the parent.
- queryString
[in] Query string for which to process replacement strings.
- rootConnectionNode
[in] SmsSiteConnectionNode object.
- resultObject
[in] IResultObject interface for getting and setting result object properties.
- queryProcessingAssembly
[in] AssemblyDescription object for query processing.
- processedQuery
[out] The name of the processed query.
- contextInformation
[out] System.Collections.Generic.Dictionary object mapping strings to objects for the context information for the processed query.
Return Value
QueryDescription object that reflects the user-specified replacement strings.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2003,Windows Vista
See Also
Reference
UtilityClass Class
UtilityClass Members
Microsoft.ConfigurationManagement.AdminConsole Namespace
SmsSiteConnectionNode Class
AssemblyDescription
QueryDescription
IResultObject