ObjectId Constructor (ObjectId)
Creates a new instance of the object which is a copy of the argument.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Sub New ( _
objId As ObjectId _
)
'Usage
Dim objId As ObjectId
Dim instance As New ObjectId(objId)
public ObjectId(
ObjectId objId
)
public:
ObjectId(
ObjectId^ objId
)
public function ObjectId(
objId : ObjectId
)
Parameters
objId
Type: Microsoft.SmartDevice.Connectivity.ObjectIdA valid ObjectId.
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.