DFSLink Developer Documentation

DFSLink.NetDFSAdd Method 

Add a link to a DFS root.

private int NetDFSAdd(
   string dfsEntryPath,
   string serverName,
   string pathName,
   string comment,
   int flags
);

Parameters

dfsEntryPath
A string that specifies the Universal Naming Convention path of a Dfs link in a named Dfs root.
serverName
A string that specifies the name of the host server that the Dfs link references.
pathName
A string that specifies the name of the shared folder to add.
comment
A string that specifies an optional comment associated with the Dfs link.
flags
This parameter can specify the DFS_ADD_VOLUME flag, or you can specify zero for no flags.

Return Value

An error code, see also Microsoft System Error Codes

See Also

DFSLink Class | dfslink Namespace