Class SharedFolders
A collection of shared Folders
Inheritance
System.Object
System.Collections.ReadOnlyCollectionBase
SharedFolders
Implements
System.Collections.ICollection
System.Collections.IEnumerable
Inherited Members
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
System.Collections.ReadOnlyCollectionBase.GetEnumerator()
System.Collections.ReadOnlyCollectionBase.InnerList
System.Collections.ReadOnlyCollectionBase.Count
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.IsSynchronized
System.Collections.ReadOnlyCollectionBase.System.Collections.ICollection.SyncRoot
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class SharedFolders : ReadOnlyCollectionBase, ICollection, IEnumerable
Constructors
SharedFolders()
Declaration
public SharedFolders()
Fields
ACCESS_DENIED
Access denied
Declaration
protected const int ACCESS_DENIED = 5
Field Value
Type | Description |
---|---|
System.Int32 |
MAX_SIZE_50_ENTRIES
Max extries (9x)
Declaration
protected const int MAX_SIZE_50_ENTRIES = 20
Field Value
Type | Description |
---|---|
System.Int32 |
MORE_DATA
More data available
Declaration
protected const int MORE_DATA = 234
Field Value
Type | Description |
---|---|
System.Int32 |
NO_ERROR
No error
Declaration
protected const int NO_ERROR = 0
Field Value
Type | Description |
---|---|
System.Int32 |
WRONG_LEVEL
Access denied
Declaration
protected const int WRONG_LEVEL = 124
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
IsWinHigher
Returns true if this is Windows 2000 or higher
Declaration
protected static bool IsWinHigher { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWinNT
Is this an NT platform?
Declaration
protected static bool IsWinNT { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
AddItem(String, String, SharedFolderType, String)
Declaration
public virtual void AddItem(string folderName, string path, SharedFolderType sharedFolderType, string description)
Parameters
Type | Name | Description |
---|---|---|
System.String | folderName | |
System.String | path | |
SharedFolderType | sharedFolderType | |
System.String | description |
CheckAuthentication(String, Int32)
Checks the authentication details
Declaration
public virtual int CheckAuthentication(string name, int level)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Int32 | level |
Returns
Type | Description |
---|---|
System.Int32 |
FindSharedFolders(String, SharedFolders)
Read the shared folders
Declaration
public virtual void FindSharedFolders(string serverName, SharedFolders sharedItems)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | The server name |
SharedFolders | sharedItems | The ShareCollection |
GetSharedFolders(String)
Gets the shared folders for a specified server machine
Declaration
public virtual SharedFolders GetSharedFolders(string serverName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName |
Returns
Type | Description |
---|---|
SharedFolders |
NetApiBufferFree(IntPtr)
Free the buffer (NT)
Declaration
protected static int NetApiBufferFree(IntPtr bufferPointer)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | bufferPointer |
Returns
Type | Description |
---|---|
System.Int32 |
NetShareEnum(String, Int32, IntPtr, UInt16, out UInt16, out UInt16)
List out the shared folders (9x)
Declaration
[CLSCompliant(false)]
protected static int NetShareEnum(string serverName, int level, IntPtr bufferPointer, ushort requiredBytes, out ushort foldersRead, out ushort totalFolders)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | |
System.Int32 | level | |
System.IntPtr | bufferPointer | |
System.UInt16 | requiredBytes | |
System.UInt16 | foldersRead | |
System.UInt16 | totalFolders |
Returns
Type | Description |
---|---|
System.Int32 |
NetShareEnum(String, Int32, out IntPtr, Int32, out Int32, out Int32, ref Int32)
List out the shared folders (NT)
Declaration
protected static int NetShareEnum(string serverName, int level, out IntPtr bufferPointer, int requiredBytes, out int foldersRead, out int totalFolders, ref int resumeHandle)
Parameters
Type | Name | Description |
---|---|---|
System.String | serverName | |
System.Int32 | level | |
System.IntPtr | bufferPointer | |
System.Int32 | requiredBytes | |
System.Int32 | foldersRead | |
System.Int32 | totalFolders | |
System.Int32 | resumeHandle |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.ICollection
System.Collections.IEnumerable