_SharingItem.Deny Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Denies a sharing request and sends a sharing response to the sender of the SharingItem.
public:
Microsoft::Office::Interop::Outlook::SharingItem ^ Deny();
public Microsoft.Office.Interop.Outlook.SharingItem Deny ();
Public Function Deny () As SharingItem
Returns
A SharingItem object that represents the sharing response.
Remarks
The Deny method can only be called on SharingItem objects with a Type property value of olSharingMsgTypeRequest or olSharingMsgTypeInviteAndRequest.
This method generates a new SharingItem object and sets the Type property of the new object to olSharingMsgTypeResponseDeny. The SharingItem is not immediately sent to the sender of the sharing request, however, so you can edit the sharing response as needed.
Note: Sharing is denied immediately after this method is called, regardless of whether the sharing response was received.