public static bool TryParse(string value, out SecurityEventParticipantNetworkType result)
            {
                result = default(SecurityEventParticipantNetworkType);

                if( value=="name")
                    result = SecurityEventParticipantNetworkType.Name;
                else if( value=="ip")
                    result = SecurityEventParticipantNetworkType.Ip;
                else if( value=="phone")
                    result = SecurityEventParticipantNetworkType.Phone;
                else if( value=="email")
                    result = SecurityEventParticipantNetworkType.Email;
                else if( value=="uri")
                    result = SecurityEventParticipantNetworkType.Uri;
                else
                    return false;

                return true;
            }
 public static string ToString(SecurityEventParticipantNetworkType value)
 {
     if( value==SecurityEventParticipantNetworkType.Name )
         return "name";
     else if( value==SecurityEventParticipantNetworkType.Ip )
         return "ip";
     else if( value==SecurityEventParticipantNetworkType.Phone )
         return "phone";
     else if( value==SecurityEventParticipantNetworkType.Email )
         return "email";
     else if( value==SecurityEventParticipantNetworkType.Uri )
         return "uri";
     else
         throw new ArgumentException("Unrecognized SecurityEventParticipantNetworkType value: " + value.ToString());
 }