Compartilhar via


Utility.GetContextReplacedString Method (String, Context, Session)

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 sessionContext As Session
Dim returnValue As String

returnValue = Utility.GetContextReplacedString(inputString, CurrentContext, sessionContext)

Syntax

'Declaration
Public Shared Function GetContextReplacedString ( _
    inputString As String, _
    CurrentContext As Context, _
    sessionContext As Session _
) As String
public static string GetContextReplacedString (
    string inputString,
    Context CurrentContext,
    Session sessionContext
)
public:
static String^ GetContextReplacedString (
    String^ inputString, 
    Context^ CurrentContext, 
    Session^ sessionContext
)
public static String GetContextReplacedString (
    String inputString, 
    Context CurrentContext, 
    Session sessionContext
)
public static function GetContextReplacedString (
    inputString : String, 
    CurrentContext : Context, 
    sessionContext : Session
) : String

Parameters

  • inputString
    Specifies the input string with replacement parameters embedded.
  • CurrentContext
    Specifies the context object used when replacing parameters.
  • sessionContext
    Specifies the session where to find data for replacing parameters.

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.