コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the AccountFilter class.
 /// </summary>
 /// <param name="id">Fully qualified resource Id for the resource. Ex -
 /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param>
 /// <param name="name">The name of the resource</param>
 /// <param name="type">The type of the resource. Ex-
 /// Microsoft.Compute/virtualMachines or
 /// Microsoft.Storage/storageAccounts.</param>
 /// <param name="presentationTimeRange">The presentation time
 /// range.</param>
 /// <param name="firstQuality">The first quality.</param>
 /// <param name="tracks">The tracks selection conditions.</param>
 public AccountFilter(string id = default(string), string name = default(string), string type = default(string), PresentationTimeRange presentationTimeRange = default(PresentationTimeRange), FirstQuality firstQuality = default(FirstQuality), IList <FilterTrackSelection> tracks = default(IList <FilterTrackSelection>))
     : base(id, name, type)
 {
     PresentationTimeRange = presentationTimeRange;
     FirstQuality          = firstQuality;
     Tracks = tracks;
     CustomInit();
 }
コード例 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (FirstQuality != null)
     {
         FirstQuality.Validate();
     }
     if (Tracks != null)
     {
         foreach (var element in Tracks)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }