다음을 통해 공유


SubscribeType.Item Property

The Item property gets or sets the subscription type. This property gets or sets either a PullSubscriptionRequestType or PushSubscriptionRequestType object. This property is required. This is a read/write property.

Namespace: ExchangeWebServices
Assembly: EWS (in ews.dll)

Syntax

'Declaration
<XmlElementAttribute("PullSubscriptionRequest", GetType(PullSubscriptionRequestType))> _
<XmlElementAttribute("PushSubscriptionRequest", GetType(PushSubscriptionRequestType))> _
Public Property Item As BaseSubscriptionRequestType
[XmlElementAttribute("PullSubscriptionRequest", typeof(PullSubscriptionRequestType))] 
[XmlElementAttribute("PushSubscriptionRequest", typeof(PushSubscriptionRequestType))] 
public BaseSubscriptionRequestType Item { get; set; }
[XmlElementAttribute(L"PullSubscriptionRequest", typeof(PullSubscriptionRequestType))] 
[XmlElementAttribute(L"PushSubscriptionRequest", typeof(PushSubscriptionRequestType))] 
public:
property BaseSubscriptionRequestType^ Item {
    BaseSubscriptionRequestType^ get ();
    void set (BaseSubscriptionRequestType^ value);
}
/** @property */
public BaseSubscriptionRequestType get_Item ()

/** @property */
public void set_Item (BaseSubscriptionRequestType value)
public function get Item () : BaseSubscriptionRequestType

public function set Item (value : BaseSubscriptionRequestType)

Property Value

The Item property returns a BaseSubscriptionRequestType object that represents the subscription type.

Remarks

The Item property can be set with either a PullSubscriptionRequestType or PushSubscriptionRequestType object. Both types extend BaseSubscriptionRequestType, which is an abstract class. For more information about why this property is set with these objects, see XML Schema Choice Element Proxy Artifacts.

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 Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)