←Select platform

TryParse Method

Summary

Creates a new cache item policy from a string.

Syntax
C#
C++/CLI
Python
public static bool TryParse( 
   string value, 
   out CacheItemPolicy policy 
) 
public:  
   static bool TryParse( 
      String^ value, 
      CacheItemPolicy^ %policy 
   ) 
def TryParse(self,value,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 22.0.2023.5.14
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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