Utility.GetContextReplacedString Method (String, Context, DynamicsCustomerRecord, Dictionary, Nullable)
Takes a string with replacement parameters embedded within it, and returns a string with those replacement parameters with values replaced.
Namespace: Microsoft.Crm.UnifiedServiceDesk.Dynamics
Assembly: Microsoft.Crm.UnifiedServiceDesk.Dynamics (in Microsoft.Crm.UnifiedServiceDesk.Dynamics.dll)
Usage
'Usage
Dim inputString As String
Dim CurrentContext As Context
Dim custRec As DynamicsCustomerRecord
Dim list As Dictionary(Of String, String)
Dim depth As Nullable(Of UInteger)
Dim returnValue As String
returnValue = Utility.GetContextReplacedString(inputString, CurrentContext, custRec, list, depth)
Syntax
'Declaration
Public Shared Function GetContextReplacedString ( _
inputString As String, _
CurrentContext As Context, _
custRec As DynamicsCustomerRecord, _
list As Dictionary(Of String, String), _
<OptionalAttribute> Optional depth As Nullable(Of UInteger) = Nothing _
) As String
public static string GetContextReplacedString (
string inputString,
Context CurrentContext,
DynamicsCustomerRecord custRec,
Dictionary<string,string> list,
[OptionalAttribute] Nullable<uint> depth
)
public:
static String^ GetContextReplacedString (
String^ inputString,
Context^ CurrentContext,
DynamicsCustomerRecord^ custRec,
Dictionary<String^, String^>^ list,
[OptionalAttribute] Nullable<unsigned int> depth
)
public static String GetContextReplacedString (
String inputString,
Context CurrentContext,
DynamicsCustomerRecord custRec,
Dictionary<String,String> list,
/** @attribute OptionalAttribute() */ Nullable<UInt32> depth
)
public static function GetContextReplacedString (
inputString : String,
CurrentContext : Context,
custRec : DynamicsCustomerRecord,
list : Dictionary<String,String>,
depth : Nullable<uint>
) : String
Parameters
- inputString
Specifies the input string with replacement parameters embedded.
- CurrentContext
Specifies the context object used when replacing parameters.
- custRec
Specifies the customer record where we can find data for replacing parameters.
- list
Specifies the list of parameters used to replace parameters.
- depth
Internal Use Only
Return Value
Returns a string with the parameters replaced.
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
See Also
Reference
Utility Class
Utility Members
Microsoft.Crm.UnifiedServiceDesk.Dynamics Namespace
Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.