FormatAsError Method

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

Namespace:  Microsoft.Build.Framework
Assembly:  System.Dataflow (in System.Dataflow.dll)

Syntax

'Declaration
<ExtensionAttribute> _
PublicSharedFunctionFormatAsError ( _
    warningAsBuildWarningEventArgs _
) AsString
'Usage
DimwarningAsBuildWarningEventArgsDimreturnValueAsStringreturnValue = warning.FormatAsError()
publicstaticstringFormatAsError(
    thisBuildWarningEventArgswarning
)
[ExtensionAttribute]
public:
staticString^ FormatAsError(
    BuildWarningEventArgs^ warning
)
publicstaticfunctionFormatAsError(
    warning : BuildWarningEventArgs
) : String

Parameters

Return Value

Type: System. . :: . .String

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BuildWarningEventArgs. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.85) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.85).

.NET Framework Security

See Also

Reference

BuildEventArgsExtensions Class

BuildEventArgsExtensions Members

Microsoft.Build.Framework Namespace