←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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.