コード例 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (SeccompProfile != null)
     {
         SeccompProfile.Validate();
     }
 }
コード例 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (SeccompProfile != null)
     {
         SeccompProfile.Validate();
     }
     if (Sysctls != null)
     {
         foreach (var element in Sysctls)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }