This documentation is archived and is not being maintained.

HwndSourceParameters Constructor

Initializes a new instance of the HwndSourceParameters class. Do not use the default constructor for HwndSourceParameters; see Remarks.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method HwndSourceParameters(String) Initializes a new instance of the HwndSourceParameters class with a specified window name.
Public method HwndSourceParameters(String, Int32, Int32) Initializes a new instance of the HwndSourceParameters class with a specified window name and initial size.
Top

Important noteImportant Note:

Do not construct instances of this structure using the default (parameterless) constructor. A HwndSourceParameters created by the default constructor results in HwndSourceParameters that cannot be assigned a WindowName (even though the WindowName property appears to be settable). If such an instance is applied as the parameters for an HwndSource constructor, the resulting HwndSource will never display a window.

Show: