Creates a new cache item policy from a string.
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
)
value
Input string. This value must not be null.
policy
Output policy to create.
true if parsing was successful and policy was created, otherwise; false.
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 Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document