ObjectId Constructor (Guid)
Creates a new instance of the object and sets the object's ID to the supplied GUID.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Sub New ( _
guid As Guid _
)
'Usage
Dim guid As Guid
Dim instance As New ObjectId(guid)
public ObjectId(
Guid guid
)
public:
ObjectId(
Guid guid
)
public function ObjectId(
guid : Guid
)
Parameters
guid
Type: System.GuidA valid ID value.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | id is nulla null reference (Nothing in Visual Basic). |
ArgumentException | Length of id is zero. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.