Microsoft.Protocols.TestSuites.MS_OXORULE.MS_OXORULEAdapter.RopDeleteProperties C# (CSharp) Method

RopDeleteProperties() public method

This ROP deletes specific properties on a message.
public RopDeleteProperties ( uint objHandle, PropertyTag propertyTags ) : RopDeletePropertiesResponse
objHandle uint This index specifies the location in the Server object handle table where the handle for the input Server object is stored.
propertyTags Microsoft.Protocols.TestSuites.Common.PropertyTag Array of PropertyTag structures, this field specifies the property values to be deleted from the object.
return Microsoft.Protocols.TestSuites.Common.RopDeletePropertiesResponse
        public RopDeletePropertiesResponse RopDeleteProperties(uint objHandle, PropertyTag[] propertyTags)
        {
            this.rawData = null;
            this.response = null;
            this.responseSOHs = null;

            RopDeletePropertiesRequest deletePropertiesRequest;
            RopDeletePropertiesResponse deletePropertiesResponse;

            deletePropertiesRequest.RopId = 0x0B;
            deletePropertiesRequest.LogonId = 0x0;
            deletePropertiesRequest.InputHandleIndex = 0x00;
            if (propertyTags != null)
            {
                deletePropertiesRequest.PropertyTagCount = (ushort)propertyTags.Length;
            }
            else
            {
                deletePropertiesRequest.PropertyTagCount = 0x00;
            }

            deletePropertiesRequest.PropertyTags = propertyTags;

            this.responseSOHs = this.DoRPCCall(deletePropertiesRequest, objHandle, ref this.response, ref this.rawData);
            deletePropertiesResponse = (RopDeletePropertiesResponse)this.response;
            return deletePropertiesResponse;
        }