TryGetGuid Method (Guid)
Collapse the table of content
Expand the table of content

UniqueId.TryGetGuid Method (Guid%)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Tries to get the value of the UniqueId as a Guid.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

'Declaration
Public Function TryGetGuid ( _
	<OutAttribute> ByRef guid As Guid _
) As Boolean

Parameters

guid
Type: System.Guid %
The Guid if successful; otherwise, Empty.

Return Value

Type: System.Boolean
true if the UniqueId represents a Guid; otherwise, false.

ExceptionCondition
ArgumentNullException

buffer is Nothing.

ArgumentException

buffer and offset provide less than 16 valid bytes.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft