Print Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Prints a message (followed by the current line terminator) to the standard output stream.
Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)
Syntax
'Declaration
Public Shared Sub Print ( _
text As String _
)
public static void Print(
string text
)
public:
static void Print(
String^ text
)
static member Print :
text:string -> unit
public static function Print(
text : String
)
Parameters
- text
Type: System. . :: . .String
The message to be printed to the standard output stream.
Remarks
This method does not follow the convention of the .NET Framework class. If you want that behavior, you can implement the following class in your application to obtain it.
public static class MyDebug
{
[ConditionalAttribute("DEBUG")]
public static void Print(string text)
{
Microsoft.SPOT.Debug.Print(text);
}
[ConditionalAttribute("TRACE")]
public static void Trace(string text)
{
Microsoft.SPOT.Debug.Print(text);
}
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.