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

RopGetPropertiesAll() public method

This ROP gets all properties on a message.
public RopGetPropertiesAll ( uint objHandle, ushort propertySizeLimit, ushort wantUnicode ) : RopGetPropertiesAllResponse
objHandle uint This index specifies the location in the Server object handle table where the handle for the input Server object is stored.
propertySizeLimit ushort This value specifies the maximum Size allowed for a property value returned.
wantUnicode ushort This value specifies whether to return string properties in Unicode.
return Microsoft.Protocols.TestSuites.Common.RopGetPropertiesAllResponse
        public RopGetPropertiesAllResponse RopGetPropertiesAll(uint objHandle, ushort propertySizeLimit, ushort wantUnicode)
        {
            this.rawData = null;
            this.response = null;
            this.responseSOHs = null;

            RopGetPropertiesAllRequest getPropertiesAllRequest;
            RopGetPropertiesAllResponse getPropertiesAllResponse;

            getPropertiesAllRequest.RopId = 0x08;
            getPropertiesAllRequest.LogonId = 0x0;
            getPropertiesAllRequest.InputHandleIndex = 0x00;
            getPropertiesAllRequest.PropertySizeLimit = propertySizeLimit;
            getPropertiesAllRequest.WantUnicode = wantUnicode;

            this.responseSOHs = this.DoRPCCall(getPropertiesAllRequest, objHandle, ref this.response, ref this.rawData);
            getPropertiesAllResponse = (RopGetPropertiesAllResponse)this.response;

            // The targetOfRop field indicates that where the Properties get from.
            switch (this.targetOfRop)
            {
                // Verify ExtendedRule's Properties
                case TargetOfRop.ForExtendedRules:
                    this.VerifyRopGetPropertiesAllForExtendedRules(getPropertiesAllResponse);
                    break;

                // Verify DEM's Properties
                case TargetOfRop.ForDEM:
                    this.VerifyRopGetPropertiesAllForDEM(getPropertiesAllResponse);
                    break;
            }

            return getPropertiesAllResponse;
        }