System.Xml.XmlConverter.ToUniqueId C# (CSharp) Méthode

ToUniqueId() static public méthode

static public ToUniqueId ( string value ) : UniqueId
value string
Résultat UniqueId
        static public UniqueId ToUniqueId(string value)
        {
            try
            {
                return new UniqueId(Trim(value));
            }
            catch (ArgumentException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception));
            }
            catch (FormatException exception)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlExceptionHelper.CreateConversionException(value, "UniqueId", exception));
            }
        }

Same methods

XmlConverter::ToUniqueId ( byte buffer, int offset, int count ) : UniqueId

Usage Example

Exemple #1
0
 public UniqueId ToUniqueId()
 {
     if (_type == ValueHandleType.UniqueId)
     {
         return(GetUniqueId());
     }
     if (_type == ValueHandleType.UTF8)
     {
         return(XmlConverter.ToUniqueId(_bufferReader.Buffer, _offset, _length));
     }
     return(XmlConverter.ToUniqueId(GetString()));
 }
All Usage Examples Of System.Xml.XmlConverter::ToUniqueId