WindowClass Constructor (String, Boolean)
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the WindowClass class, specifying information about the versioning status of the window class.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly: Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
versioned As Boolean _
)
public WindowClass(
string name,
bool versioned
)
public:
WindowClass(
String^ name,
bool versioned
)
new :
name:string *
versioned:bool -> WindowClass
public function WindowClass(
name : String,
versioned : boolean
)
Parameters
name
Type: System.StringThe name of the class.
versioned
Type: System.BooleanControls whether the internal window class name that is used in registration contains the version of the assembly that contains the window class.
Remarks
The versioned parameter controls whether the internal window class name that is used in registration contains the version of the assembly that contains the window class. The value of this attribute can be yes or no. The default is yes. The value no should be used only if the same window class is defined by a side-by-side component and an equivalent non-side-by-side component and you want to treat them as the same window class. Note that the usual rules about window class registration apply: only the first component that registers the window class will be able to register it, because it does not have a version applied to it.
.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.
See Also
Reference
Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace