Share via


MessageSignature.OwnerElement Property

Sets the System.Xml.XmlElement that owns the element being signed.

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

Usage

'Usage
Dim messageSignature1 As MessageSignature

Dim sampleValue As XmlElement
messageSignature1.OwnerElement = sampleValue

Syntax

'Declaration
Public WriteOnly Property OwnerElement() As XmlElement
public XmlElement OwnerElement {set;}
public: property XmlElement^ OwnerElement{
    Void set(XmlElement^);
}
public void set_OwnerElement(XmlElement);
public function set OwnerElement(XmlElement);

Property Value

The System.Xml.XmlElement that owns the element being signed.

Exceptions

Exception type Condition
System.ArgumentNullException

OwnerElement is null .

Remarks

Only the Timestamp element that belongs to the WS-Security header is signed if the SignatureOptions.IncludeTimestamp enumeration is selected. Setting the OwnerElement property to the WS-Security header XML element ensures that the correct Timestamp is signed.

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

MessageSignature Class
Microsoft.Web.Services2.Security Namespace

Other Resources

MessageSignature Members