BlobProperties.ContentType Property

Windows Runtime Azure Storage Client Library

Gets or sets the content-type value stored for the blob.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As BlobProperties
Dim value As String

value = instance.ContentType

instance.ContentType = value

Syntax

Visual Basic
Public Property ContentType As String
C#
public string ContentType { get; set; }
C++
public:
property String^ ContentType {
	String^ get ();
	void set (String^ value);
}
J#
/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public String get_ContentType ()

/** @property */
/** @attribute CompilerGeneratedAttribute() */ 
public void set_ContentType (String value)
JScript
CompilerGeneratedAttribute 
public function get ContentType () : String

CompilerGeneratedAttribute 
public function set ContentType (value : String)

Property Value

A string containing the blob's content-type value.

Remarks

If this property has not been set for the blob, it returns null.


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