←Select platform

TryParse Method

Summary

Creates a new cache item policy from a string.

Syntax
C#
VB
C++
public static bool TryParse( 
   string value, 
   out CacheItemPolicy policy 
) 
Public Shared Function TryParse( 
   ByVal value As String, 
   ByRef policy As CacheItemPolicy 
) As Boolean 
public:  
   static bool TryParse( 
      String^ value, 
      CacheItemPolicy^ %policy 
   ) 

Parameters

value

Input string. This value must not be null.

policy

Output policy to create.

Return Value

true if parsing was successful and policy was created, otherwise; false.

Remarks

ToParsableString can be used to convert a CacheItemPolicy to a simple string to store in an external resource (such as a configuration file). TryParse can then be used to re-create the policy from the string.

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly