Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[IHomeGroupProvider.PublishFolder is no longer available for use as of Windows Server 2012 Essentials.] Publishes or unpublishes a folder in a homegroup.
Namespace: Microsoft.WindowsServerSolutions.HomeGroup
Assembly: WSSHomeGroupObjectModel (in WSSHomeGroupObjectModel.dll)
Usage
'Usage
Dim instance As IHomeGroupProvider
Dim path As String
Dim shareName As String
Dim shareDescription As String
Dim permission As HomeUsersPermission
instance.PublishFolder(path, shareName, shareDescription, permission)
Syntax
'Declaration
<OperationContractAttribute(IsOneWay:=True)> _
Sub PublishFolder ( _
path As String, _
shareName As String, _
shareDescription As String, _
permission As HomeUsersPermission _
)
[OperationContractAttribute(IsOneWay=true)]
void PublishFolder (
string path,
string shareName,
string shareDescription,
HomeUsersPermission permission
)
[OperationContractAttribute(IsOneWay=true)]
void PublishFolder (
String^ path,
String^ shareName,
String^ shareDescription,
HomeUsersPermission permission
)
/** @attribute OperationContractAttribute(IsOneWay=true) */
void PublishFolder (
String path,
String shareName,
String shareDescription,
HomeUsersPermission permission
)
OperationContractAttribute(IsOneWay=true)
function PublishFolder (
path : String,
shareName : String,
shareDescription : String,
permission : HomeUsersPermission
)
Parameters
- path
The path to the folder.
- shareName
The share name.
- shareDescription
The share description.
- permission
The permission for the operation.
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
IHomeGroupProvider Interface
IHomeGroupProvider Members
Microsoft.WindowsServerSolutions.HomeGroup Namespace
Copyright © 2012 by Microsoft Corporation. All rights reserved.