Serialize() public method

Get serialized byte array for this struct
public Serialize ( ) : byte[]
return byte[]
Beispiel #1
0
        /// <summary>
        /// Get store object EntryID bytes array.
        /// </summary>
        /// <param name="storeObjectType">Identify the store object is a mailbox or a public folder.</param>
        /// <param name="serverShortName">Server short name string.</param>
        /// <param name="mailboxDN">Mailbox DN string.</param>
        /// <returns>Store object EntryID bytes array.</returns>
        public byte[] GetStoreObjectEntryID(StoreObjectType storeObjectType, string serverShortName, string mailboxDN)
        {
            StoreObjectEntryID objectEntryId = new StoreObjectEntryID(storeObjectType)
            {
                ServerShortname = serverShortName,
                MailBoxDN       = mailboxDN
            };

            return(objectEntryId.Serialize());
        }
 /// <summary>
 /// Get store object EntryID bytes array.
 /// </summary>
 /// <param name="storeObjectType">Identify the store object is a mailbox or a public folder.</param>
 /// <param name="serverShortName">Server short name string.</param>
 /// <param name="mailboxDN">Mailbox DN string.</param>
 /// <returns>Store object EntryID bytes array.</returns>
 public byte[] GetStoreObjectEntryID(StoreObjectType storeObjectType, string serverShortName, string mailboxDN)
 {
     StoreObjectEntryID objectEntryId = new StoreObjectEntryID(storeObjectType)
     {
         ServerShortname = serverShortName,
         MailBoxDN = mailboxDN
     };
     return objectEntryId.Serialize();
 }