JunctionPolicy.CheckReadOnly Method

[This is prerelease documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Checks if the current instance is read only and throws an exception if it is.

Namespace: Microsoft.ServiceBus
Assembly: Microsoft.ServiceBus (in microsoft.servicebus.dll)

Usage

Me.CheckReadOnly

Syntax

'Declaration
Protected Sub CheckReadOnly
protected void CheckReadOnly ()
protected:
void CheckReadOnly ()
protected void CheckReadOnly ()
protected function CheckReadOnly ()

Exceptions

Exception type Condition
InvalidOperationException

the JunctionPolicy is read-only.

Remarks

This protected method is used by derived classes to determine if the JunctionPolicy is read-only.

A JunctionPolicy is marked as read-only if the policy relates to an existing queue or router in the service bus. Only ExpirationInstant can be modified on a read-only JunctionPolicy.

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 Server 2008, and Windows 2000

Target Platforms

See Also

Reference

JunctionPolicy Class
JunctionPolicy Members
Microsoft.ServiceBus Namespace