Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The Managed Object Format (MOF) compiler supports two styles of comment using two different styles of comment delimiters.
The following table lists the delimiters that are used for comments and the effect that the delimiters have in the code.
Delimiter | Marks |
---|---|
// | Start of a comment that terminates at the end of the line. |
/* and */ | Beginning and end of a comment that may span multiple lines or only span a portion of a line. |
As in the C and C++ programming languages, you must use the // delimiter with single-line comments only, but use the /* and */ delimiters with either single-line or multiple-line comments.
The following code example describes the two delimiter styles.
int32 MyProp = 2; // This is a comment until the line ends.
int32 /* This is a comment. */ MyProp = 2;
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today