Visual Basic (Declaration) | |
---|---|
Public Sub Refresh() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Devices instance.Refresh() |
C# | |
---|---|
public void Refresh() |
C++/CLI | |
---|---|
public: void Refresh(); |
This method will rebuild the collection of system-registered devices. It is usually called from applications that respond to system device change notifications.
If the method fails, an error is raised. For more information, refer to the Error Codes.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7