예제 #1
0
        public static List <QueryVAppOrgVdcNetworkRelationField> Values()
        {
            QueryVAppOrgVdcNetworkRelationField        networkRelationField     = new QueryVAppOrgVdcNetworkRelationField();
            List <QueryVAppOrgVdcNetworkRelationField> networkRelationFieldList = new List <QueryVAppOrgVdcNetworkRelationField>();

            foreach (FieldInfo field in networkRelationField.GetType().GetFields())
            {
                networkRelationFieldList.Add((QueryVAppOrgVdcNetworkRelationField)field.GetValue((object)networkRelationField));
            }
            return(networkRelationFieldList);
        }
예제 #2
0
 public static QueryVAppOrgVdcNetworkRelationField FromValue(
     string value)
 {
     foreach (QueryVAppOrgVdcNetworkRelationField networkRelationField in QueryVAppOrgVdcNetworkRelationField.Values())
     {
         if (networkRelationField.Value().Equals(value))
         {
             return(networkRelationField);
         }
     }
     throw new ArgumentException(value.ToString());
 }