HomeGroupManager.CreateHomeGroupAsync Method
[HomeGroupManager.CreateHomeGroupAsync is no longer available for use as of Windows Server 2012 Essentials.] Asynchronously creates a homegroup by using the specified name as the creator name.
Namespace: Microsoft.WindowsServerSolutions.HomeGroup
Assembly: WSSHomeGroupObjectModel (in WSSHomeGroupObjectModel.dll)
Usage
'Usage
Dim instance As HomeGroupManager
Dim creator As String
instance.CreateHomeGroupAsync(creator)
Syntax
'Declaration
Public Sub CreateHomeGroupAsync ( _
creator As String _
)
public void CreateHomeGroupAsync (
string creator
)
public:
void CreateHomeGroupAsync (
String^ creator
)
public void CreateHomeGroupAsync (
String creator
)
public function CreateHomeGroupAsync (
creator : String
)
Parameters
- creator
The name of the creator of the homegroup.
Remarks
To use object model operations such as folder operations, you must import the HomeUsers group into the Identity of the server. This can be accomplished via the ImportUser method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Server 2008 R2 x64, Windows 7 x64, Windows Server 2008 x64, Windows Vista x64
See Also
Reference
HomeGroupManager Class
HomeGroupManager Members
Microsoft.WindowsServerSolutions.HomeGroup Namespace
Copyright © 2012 by Microsoft Corporation. All rights reserved.