/// <summary> /// Create a new policy exclusion. /// </summary> /// <param name="config">The <see cref="PolicyExclusionConfigInfo"/> containing exclusion configuration information.</param> /// <returns>A new <see cref="PolicyExclusion"/> object if the exclusion type was available, otherwise a null reference (<b>Nothing</b> in Visual Basic).</returns> public PolicyExclusion Create(PolicyExclusionConfigInfo config) { PolicyExclusion exclusion = null; Type exclusionType = exclusionTypeCache[config.ExclusionType]; if (exclusionType != null) { exclusion = (PolicyExclusion)Activator.CreateInstance(exclusionType); if (exclusion != null) { exclusion.Initialize(config.Configuration); } } return(exclusion); }
/// <summary> /// Compares the current object with another object of the same type. /// </summary> /// <param name="exclusion">An <see cref="PolicyExclusion"/> to compare.</param> /// <returns>A 32-bit signed integer that indicates the relative order of the objects being compared.</returns> public abstract int CompareTo(PolicyExclusion exclusion);