C# 클래스 Microsoft.Protocols.TestSuites.MS_OXCTABL.AdapterHelper

Provide AdapterHelper Methods.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

공개 메소드들

메소드 설명
GenerateContentRestriction ( TaggedPropertyValue taggedPValue ) : byte[]

Build a RestrictionData as single ContentRestriction

GenerateRuleProperties ( string name ) : RuleProperties

Generate rule properties value.

GenerateValidRestrictData ( ITestSite site, TableType tableType ) : byte[]

Generate a sample valid RestrictData structure.

GenerateValidRuleData ( ActionTypes actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, RuleProperties ruleProperties ) : RuleData

Generate a sample valid RuleData structure.

ReadTaggedProperty ( byte buffer ) : TaggedPropertyValue

Read a TaggedPropertyValue structure from buffer.

ReadValueByType ( ushort type, byte buffer ) : byte[]

Read a value from buffer for special Type.

비공개 메소드들

메소드 설명
AddRuleAction ( IList list, ActionTypes actionType, IActionData actionData, uint actionFlavor, uint actionFlag ) : void

Add rule action to the properties list

AddRuleCondition ( IList list, string mailSubjectContent ) : void

Add ruleCondition to the properties list

GenerateRuleAction ( ActionTypes actionType, Count bytesCount, IActionData actionDataBufferValue, uint actionFlavor, uint actionFlag ) : RuleAction

Generate a sample rule action.

메소드 상세

GenerateContentRestriction() 공개 정적인 메소드

Build a RestrictionData as single ContentRestriction
public static GenerateContentRestriction ( TaggedPropertyValue taggedPValue ) : byte[]
taggedPValue Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue A TaggedPropertyValue of this restriction
리턴 byte[]

GenerateRuleProperties() 공개 정적인 메소드

Generate rule properties value.
public static GenerateRuleProperties ( string name ) : RuleProperties
name string Rule name.
리턴 RuleProperties

GenerateValidRestrictData() 공개 정적인 메소드

Generate a sample valid RestrictData structure.
public static GenerateValidRestrictData ( ITestSite site, TableType tableType ) : byte[]
site ITestSite An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context.
tableType TableType Identify the table type
리턴 byte[]

GenerateValidRuleData() 공개 정적인 메소드

Generate a sample valid RuleData structure.
public static GenerateValidRuleData ( ActionTypes actionType, TestRuleDataType ruleDataType, int ruleSequence, RuleState ruleState, IActionData actionData, RuleProperties ruleProperties ) : RuleData
actionType ActionTypes ActionType in a rule
ruleDataType TestRuleDataType Rule data value.
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
ruleProperties RuleProperties Rule properties structure.
리턴 Microsoft.Protocols.TestSuites.Common.RuleData

ReadTaggedProperty() 공개 정적인 메소드

Read a TaggedPropertyValue structure from buffer.
public static ReadTaggedProperty ( byte buffer ) : TaggedPropertyValue
buffer byte Buffer contain TaggedPropertyValue instance
리턴 Microsoft.Protocols.TestSuites.Common.TaggedPropertyValue

ReadValueByType() 공개 정적인 메소드

Read a value from buffer for special Type.
public static ReadValueByType ( ushort type, byte buffer ) : byte[]
type ushort The Type of value
buffer byte Buffer contains value
리턴 byte[]