ObjectId Constructor (String)
Creates a new instance of the object and sets the object's ID to the supplied string.
Namespace: Microsoft.SmartDevice.Connectivity
Assembly: Microsoft.SmartDevice.Connectivity (in Microsoft.SmartDevice.Connectivity.dll)
Syntax
'Declaration
Public Sub New ( _
id As String _
)
'Usage
Dim id As String
Dim instance As New ObjectId(id)
public ObjectId(
string id
)
public:
ObjectId(
String^ id
)
public function ObjectId(
id : String
)
Parameters
id
Type: System.StringA valid string.
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.