CorsRule.MaxAgeInSeconds Property

Windows Runtime Azure Storage Client Library

Gets or sets the length of time in seconds that a preflight response should be cached by browser.

Namespace: Microsoft.WindowsAzure.Storage.Shared.Protocol
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As CorsRule
Dim value As Integer

value = instance.MaxAgeInSeconds

instance.MaxAgeInSeconds = value

Syntax

Visual Basic
Public Property MaxAgeInSeconds As Integer
C#
public int MaxAgeInSeconds { get; set; }
C++
public:
property int MaxAgeInSeconds {
	int get ();
	void set (int value);
}
J#
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public int get_MaxAgeInSeconds ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_MaxAgeInSeconds (int value)
JScript
CompilerGeneratedAttribute 
public function get MaxAgeInSeconds () : int

CompilerGeneratedAttribute 
public function set MaxAgeInSeconds (value : int)

Property Value

The maximum number of seconds to cache the response.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also