Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

UniqueId.TryGetGuid Method (Byte[], Int32)

Tries to get the value of the UniqueId as a Guid and store it in the given byte array at the specified offset.

Namespace:  System.Xml
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)
[SecuritySafeCriticalAttribute]
public bool TryGetGuid(
	byte[] buffer,
	int offset
)

Parameters

buffer
Type: System.Byte[]
byte array that will contain the Guid.
offset
Type: System.Int32
Position in the byte array to start inserting the Guid value.

Return Value

Type: System.Boolean
true if the value stored in this instance of UniqueId is a Guid; otherwise, false.
ExceptionCondition
ArgumentNullException

buffer is null.

ArgumentOutOfRangeException

offset less than zero or greater than the length of the array.

ArgumentException

buffer and offset provide less than 16 valid bytes.

This method is unsafe.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.