C# Class Rock.Web.SystemSettings

显示文件 Open project: NewSpring/Rock Class Usage Examples

Private Properties

Property Type Description
CacheKey string
Read SystemSettings
SystemSettings System

Public Methods

Method Description
Flush ( ) : void

Flushes this instance.

GetRockInstanceId ( ) : System.Guid

Gets the RockInstanceId for this particular installation.

GetValue ( string key ) : string

Gets the Global Attribute values for the specified key.

SetValue ( string key, string value ) : void

Sets the value.

Private Methods

Method Description
CacheKey ( ) : string
Read ( ) : SystemSettings

Returns Global Attributes from cache. If they are not already in cache, they will be read and added to cache

SystemSettings ( ) : System

Method Details

Flush() public static method

Flushes this instance.
public static Flush ( ) : void
return void

GetRockInstanceId() public static method

Gets the RockInstanceId for this particular installation.
public static GetRockInstanceId ( ) : System.Guid
return System.Guid

GetValue() public static method

Gets the Global Attribute values for the specified key.
public static GetValue ( string key ) : string
key string The key.
return string

SetValue() public static method

Sets the value.
public static SetValue ( string key, string value ) : void
key string The key.
value string The value.
return void