Share via


EncryptedData.Type Property

Gets or sets the type of encryption to perform.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim encryptedData1 As EncryptedData

Dim returnValue As String
returnValue = encryptedData1.Type

Dim sampleValue As String
encryptedData1.Type = sampleValue

Syntax

'Declaration
Public Property Type() As String
public string Type {get; set;}
public: property String^ Type{
    String^ get();
    Void set(String^);
}
public System.String get_Type();
public void set_Type(System.String);
public function get Type() : String;
public function set Type(String);

Property Value

The type of encryption to perform. The default is http://www.w3.org/2001/04/xmlenc\#Content .

Remarks

The Type property can be set to either http://www.w3.org/2001/04/xmlenc\#Content or http://www.w3.org/2001/04/xmlenc\#Element. If the target is soap:Header, the Type property must be set to http://www.w3.org/2001/04/xmlenc\#Content.

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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

EncryptedData Class
Microsoft.Web.Services2.Security Namespace

Other Resources

EncryptedData Members