RefreshSharingFolderType Class

The RefreshSharingFolderType class represents a request to refresh shared data in the specified local folder.

Inheritance Hierarchy

System.Object
  ExchangeWebServices.BaseRequestType
    ExchangeWebServices.RefreshSharingFolderType

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class RefreshSharingFolderType _
    Inherits BaseRequestType
'Usage
Dim instance As RefreshSharingFolderType
[SerializableAttribute]
public class RefreshSharingFolderType : BaseRequestType

Examples

The following code example shows you how to refresh the specified local folder with the latest data from the folder that is being shared. In this example, IdOfLocalFolder is the FolderIdType object that identifies the local folder that is to be refreshed.

static void RefreshSharingFolderTest(ExchangeServiceBinding esb)
{
    // Create the sharing request.
    RefreshSharingFolderType rsfRequest = new RefreshSharingFolderType();
    
    // Specify the identifier for the local folder that is to be refreshed.
    rsfRequest.SharingFolderId = IdOfLocalFolder; 
    
    try
    {
      // Send the request and get the response.
      RefreshSharingFolderResponseMessageType rsfResponse = esb.RefreshSharingFolder(rsfRequest);
    }
    catch (Exception e) 
    {
      Console.WriteLine(e.Message); 
    }
}

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.