Méthode | Description | |
---|---|---|
AllocFlatUID_r ( |
Allocate memory for GUIDs.
|
|
AllocPropertyTagArray_r ( |
Allocate memory for the specific property values.
|
|
AllocStat ( |
Allocate memory for stat instance.
|
|
ConvertStringToBytes ( string str ) : byte[] |
This method converts a string to a byte array, the string is consist of hex16 values which are separated by ",".
|
|
GenerateContentRestriction ( |
Build a RestrictionData as single ContentRestriction.
|
|
GenerateExtendedRuleTestData ( string rulename, int ruleSequence, uint ruleState, string provider, ActionType actionType, IActionData actionData, string contentRestrictSubjectName, |
Generate test data for creating extended rule.
|
|
GenerateRecipientPropertiesBlock ( string userName, string userDN ) : Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[] |
Generate property value on recipient.
|
|
GenerateRuleInfoPropertiesOfDAM ( ) : Microsoft.Protocols.TestSuites.Common.PropertyTag[] |
Generate PropertyTag arrays for rule properties of DAM.
|
|
GenerateRuleProperties ( ITestSite site, string name ) : |
Generate rule properties value.
|
|
GenerateValidRuleData ( ActionType actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, |
Generate RuleData from ptf config base on different action Type.
|
|
GenerateValidRuleDataWithFlavor ( ActionType actionType, int ruleSequence, RuleState ruleState, IActionData actionData, uint actionFlavor, |
Generate RuleData from ptf config base on different action Type.
|
|
IsContainSameValue ( uint uintArray ) : bool |
This method is used to determine whether there are two elements of the same value in a uint array.
|
|
ParseBinaryArray_r ( |
Parse BinaryArray_r structure.
|
|
ParseBinary_r ( |
Parse Binary_r structure.
|
|
ParseEphemeralEntryIDFromBytes ( byte bytes ) : |
Parse EphemeralEntryID structure from byte array.
|
|
ParseFlatUIDArray_r ( |
Parse FlatUIDArray_r structure.
|
|
ParseFlatUID_r ( |
Parse GUIDs.
|
|
ParseLongArray_r ( |
Parse LongArray_r structure.
|
|
ParsePROP_VAL_UNION ( |
Parse PROP_VAL_UNION structure.
|
|
ParsePROP_VAL_UNION ( |
Parse PROP_VAL_UNION structure.
|
|
ParsePermanentEntryIDFromBytes ( byte bytes ) : |
Parse PermanentEntryID structure from byte array.
|
|
ParsePropertyRowSet_r ( |
Parse PropertyRowSet_r structure.
|
|
ParsePropertyRowSet_r ( |
Parse PropertyRowSet_r structure.
|
|
ParsePropertyRowSet_r ( uint rowsCount, |
Parse PropertyRowSet_r structure.
|
|
ParsePropertyRow_r ( |
Parse the PropertyRow_r structure.
|
|
ParsePropertyRow_r ( |
Parse PropertyRow_r structure.
|
|
ParsePropertyValue_r ( |
Parse PropertyValue_r structure.
|
|
ParseShortArray_r ( |
Parse ShortArray_r structure.
|
|
ParseStat ( |
Parse a STAT structure instance from pointer.
|
|
ParseStringArray_r ( |
Parse StringArray_r structure.
|
|
ParseString_r ( |
Parse String_r structure.
|
|
ParseWStringArray_r ( |
Parse WStringArray_r structure.
|
|
ParseWString_r ( |
Parse WString_r structure.
|
|
PropertyValueConvertToBinary ( byte byteArray ) : byte[] |
This method help to convert the property value, which is of variable bytes, to binary value.
|
|
PropertyValueConvertToBool ( byte byteArray ) : bool |
This method help to convert the property value, which is of 1 byte, to Boolean value.
|
|
PropertyValueConvertToExtendedRuleActions ( byte byteArray ) : |
This method help to convert the property value, which is of variable bytes, to ExtendedRuleActions structure.
|
|
PropertyValueConvertToExtendedRuleCondition ( byte byteArray ) : |
This method help to convert the property value, which is of variable bytes, to ExtendedRuleCondition structure.
|
|
PropertyValueConvertToInt ( byte byteArray ) : int |
This method helps to convert the property value, which is of 4 bytes, to int value.
|
|
PropertyValueConvertToRuleAction ( byte byteArray ) : |
This method help to convert the property value, which is of variable bytes, to RuleAction structure.
|
|
PropertyValueConvertToString ( byte byteArray ) : string |
This method help to convert the property value, which is of variable bytes, to string value.
|
|
PropertyValueConvertToUint ( byte byteArray ) : uint |
This method helps to convert the property value, which is of 4 bytes, to unsigned integer value.
|
|
PropertyValueConvertToUint64 ( byte byteArray ) : ulong |
This method helps to convert the property value, which is of 8 bytes, to unsigned long value.
|
|
ReadTaggedProperty ( byte buffer ) : |
Get a TaggedPropertyValue structure from buffer.
|
|
ReadValueByType ( ushort type, byte buffer ) : byte[] |
Read a value from buffer for special Type.
|
|
SerializeRecipientProperties ( ) : uint[] |
Serialize recipient properties.
|
Méthode | Description | |
---|---|---|
AddRuleAction ( IList |
Add rule action to the properties list.
|
|
AddRuleCondition ( IList |
Add ruleCondition to the properties list.
|
|
GetRuleAction ( ActionType actionType, CountByte countBytes, IActionData actionDataBufferValue, uint actionFlavor, uint actionFlags ) : |
Generate a rule action.
|
public static AllocFlatUID_r ( |
||
fuid_r | Instance of GUIDs. | |
Résultat |
public static AllocPropertyTagArray_r ( |
||
pta_r | PropertyTagArray_r instance. | |
Résultat |
public static AllocStat ( |
||
stat | The stat instance. | |
Résultat |
public static ConvertStringToBytes ( string str ) : byte[] | ||
str | string | A string to be converted. |
Résultat | byte[] |
public static GenerateContentRestriction ( |
||
taggedPValue | A TaggedPropertyValue of this restriction. | |
Résultat | byte[] |
public static GenerateExtendedRuleTestData ( string rulename, int ruleSequence, uint ruleState, string provider, ActionType actionType, IActionData actionData, string contentRestrictSubjectName, |
||
rulename | string | The rule name. |
ruleSequence | int | The rule sequence. |
ruleState | uint | The rule state. |
provider | string | The rule provider. |
actionType | ActionType | The rule action Type. |
actionData | IActionData | The rule action data. |
contentRestrictSubjectName | string | The subject name of the rule content restriction. |
namedPropertyInfo | The namedPropertyInfo that needed for construct the rule data. | |
Résultat | Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[] |
public static GenerateRecipientPropertiesBlock ( string userName, string userDN ) : Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[] | ||
userName | string | Recipient user name. |
userDN | string | Recipient user dn. |
Résultat | Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue[] |
public static GenerateRuleInfoPropertiesOfDAM ( ) : Microsoft.Protocols.TestSuites.Common.PropertyTag[] | ||
Résultat | Microsoft.Protocols.TestSuites.Common.PropertyTag[] |
public static GenerateRuleProperties ( ITestSite site, string name ) : |
||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
name | string | Rule name. |
Résultat |
public static GenerateValidRuleData ( ActionType actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, |
||
actionType | ActionType | ActionType in a rule. |
ruleDataType | TestRuleDataType | The type of the rule data. |
ruleSequence | int | Rule sequence in PidTagRuleSequence of the RuleData. |
ruleState | RuleState | Specifies value of PidTagRuleState of the RuleData. |
actionData | IActionData | The actionData needed to construct the RuleData. |
otherInfo | /// An array of Other needed information of Actions. /// Index may be from 0-4 /// 0. Rule name /// 1. Rule provider /// 2. Rule user Flags /// 3. Rule provider data /// 4. Subject name of content restriction /// | |
ruleId | ulong | A 64-bit unsigned integer represents the rule. |
Résultat |
public static GenerateValidRuleDataWithFlavor ( ActionType actionType, int ruleSequence, RuleState ruleState, IActionData actionData, uint actionFlavor, |
||
actionType | ActionType | ActionType in a rule. |
ruleSequence | int | Rule sequence in PidTagRuleSequence of the RuleData. |
ruleState | RuleState | Specifies value of PidTagRuleState of the RuleData. |
actionData | IActionData | The actionData needed to construct the RuleData. |
actionFlavor | uint | The actionFlavor of the rule action. |
otherInfo | /// An array of Other needed information of Actions. /// Index may be from 0-4 /// 0. Rule name /// 1. Rule provider /// 2. Rule user Flags /// 3. Rule provider data /// 4. Subject name of content restriction /// | |
Résultat |
public static IsContainSameValue ( uint uintArray ) : bool | ||
uintArray | uint | The unsigned integer array to be evaluated. |
Résultat | bool |
public static ParseBinaryArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseBinary_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseEphemeralEntryIDFromBytes ( byte bytes ) : |
||
bytes | byte | The byte array to be parsed. |
Résultat |
public static ParseFlatUIDArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseFlatUID_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseLongArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParsePROP_VAL_UNION ( |
||
propertyValue | The property value used for parsing. | |
proptype | PropertyTypeValue | The Property Types used for parsing. |
Résultat |
public static ParsePROP_VAL_UNION ( |
||
ptr | A pointer points to the allocated memory. | |
proptype | PropertyTypeValue | Property Types. |
Résultat |
public static ParsePermanentEntryIDFromBytes ( byte bytes ) : |
||
bytes | byte | The byte array to be parsed. |
Résultat |
public static ParsePropertyRowSet_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParsePropertyRowSet_r ( |
||
columns | The columns which contain property tags. | |
rowCount | uint | The row count of the PropertyRowSet_r. |
rowData | The row data which contain the property values. | |
Résultat |
public static ParsePropertyRowSet_r ( uint rowsCount, |
||
rowsCount | uint | The row count of the PropertyRowSet_r. |
rows | The rows which contains property tags and property values. | |
Résultat |
public static ParsePropertyRow_r ( |
||
row | The row which contains property tags and property values | |
Résultat |
public static ParsePropertyRow_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParsePropertyValue_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseShortArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseStat ( |
||
ptr | Pointer points to the memory. | |
Résultat |
public static ParseStringArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseString_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat | byte[] |
public static ParseWStringArray_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat |
public static ParseWString_r ( |
||
ptr | A pointer points to the allocated memory. | |
Résultat | byte[] |
public static PropertyValueConvertToBinary ( byte byteArray ) : byte[] | ||
byteArray | byte | The byte array to be converted. |
Résultat | byte[] |
public static PropertyValueConvertToBool ( byte byteArray ) : bool | ||
byteArray | byte | The byte array to be converted. |
Résultat | bool |
public static PropertyValueConvertToExtendedRuleActions ( byte byteArray ) : |
||
byteArray | byte | The byte array to be converted. |
Résultat |
public static PropertyValueConvertToExtendedRuleCondition ( byte byteArray ) : |
||
byteArray | byte | The byte array to be converted. |
Résultat |
public static PropertyValueConvertToInt ( byte byteArray ) : int | ||
byteArray | byte | The byte array to be converted. |
Résultat | int |
public static PropertyValueConvertToRuleAction ( byte byteArray ) : |
||
byteArray | byte | The byte array to be converted. |
Résultat |
public static PropertyValueConvertToString ( byte byteArray ) : string | ||
byteArray | byte | The byte array to be converted. |
Résultat | string |
public static PropertyValueConvertToUint ( byte byteArray ) : uint | ||
byteArray | byte | The byte array to be converted. |
Résultat | uint |
public static PropertyValueConvertToUint64 ( byte byteArray ) : ulong | ||
byteArray | byte | The byte array to be converted. |
Résultat | ulong |
public static ReadTaggedProperty ( byte buffer ) : |
||
buffer | byte | Buffer contain TaggedPropertyValue instance. |
Résultat |
public static ReadValueByType ( ushort type, byte buffer ) : byte[] | ||
type | ushort | The Type of value. |
buffer | byte | Buffer contains value. |
Résultat | byte[] |
public static SerializeRecipientProperties ( ) : uint[] | ||
Résultat | uint[] |