IWHSInfo2.CreateShare Method
IWHSInfo2.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

Visual Basic
Function CreateShare ( _
    <InAttribute> wszName As String, _
    <InAttribute> wszDescription As String, _
    <InAttribute> bIsDuped As Integer _
) As IShareInfo2
C#
IShareInfo2 CreateShare (
    [InAttribute] string wszName,
    [InAttribute] string wszDescription,
    [InAttribute] int bIsDuped
)
C++
IShareInfo2^ CreateShare (
    [InAttribute] String^ wszName, 
    [InAttribute] String^ wszDescription, 
    [InAttribute] int bIsDuped
)
J#
IShareInfo2 CreateShare (
    /** @attribute InAttribute() */ String wszName, 
    /** @attribute InAttribute() */ String wszDescription, 
    /** @attribute InAttribute() */ int bIsDuped
)
JScript
function CreateShare (
    wszName : String, 
    wszDescription : String, 
    bIsDuped : int
) : IShareInfo2

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

Page view tracker