Share via


WHSInfoClass.CreateShare Method

Creates a managed shared folder on the home server.

Namespace: Microsoft.HomeServer.SDK.Interop.v1
Assembly: Microsoft.HomeServer.SDK.Interop.v1 (in microsoft.homeserver.sdk.interop.v1.dll)

Usage

Syntax

'Declaration
Public Overridable Function CreateShare ( _
    <InAttribute> wszName As String, _
    <InAttribute> wszDescription As String, _
    <InAttribute> bIsDuped As Integer _
) As IShareInfo2 Implements IWHSInfo2.CreateShare
public virtual IShareInfo2 IWHSInfo2.CreateShare (
    [InAttribute] string wszName,
    [InAttribute] string wszDescription,
    [InAttribute] int bIsDuped
)
public:
virtual IShareInfo2^ CreateShare (
    [InAttribute] String^ wszName, 
    [InAttribute] String^ wszDescription, 
    [InAttribute] int bIsDuped
) = IWHSInfo2::CreateShare

Parameters

  • wszName
    A string that contains the name of the shared folder.
  • wszDescription
    A string that contains the description of the shared folder.
  • bIsDuped
    An integer that indicates whether the shared folder is duplicated.

Return Value

An instance of IShareInfo2.

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, Windows Vista, Windows Server 2003, Windows XP

Target Platforms

Windows Home Server

See Also

Reference

WHSInfoClass Class
WHSInfoClass Members
Microsoft.HomeServer.SDK.Interop.v1 Namespace