Partager via


_SharingItem.Deny Method

Denies a sharing request and sends a sharing response to the sender of the SharingItem.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function Deny As SharingItem
'Usage
Dim instance As _SharingItem
Dim returnValue As SharingItem

returnValue = instance.Deny()
[DispIdAttribute()]
SharingItem Deny()

Return Value

Type: Microsoft.Office.Interop.Outlook.SharingItem
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.

See Also

Reference

_SharingItem Interface

_SharingItem Members

Microsoft.Office.Interop.Outlook Namespace