Dela via


ICodePackageActivationContext3.GetDirectory(String) Method

Definition

Retrieves the path to sub directory inside the work directory with the name "logicalDirectoryName".

public string GetDirectory (string logicalDirectoryName);
abstract member GetDirectory : string -> string
Public Function GetDirectory (logicalDirectoryName As String) As String

Parameters

logicalDirectoryName
String

Returns

The path to sub directory with name logicalDirectoryName inside work directory

Remarks

Throws an exception if logicalDirectoryName is not found under work directory. Otherwise will return directory path WorkDirectory\logicalDirectoryName which is a symbolic link to directory specified with Name under LogicalDirectories Section of ClusterManifest. for example: if you have specified and call to this method with directoryName "Foo" will return you path WorkDirectory\Foo. Any writes made to returned path will go to D:\Foo\NodeId\ApplicationType_ApplicationVersion. This method is case insensitive so even if you say directoryName foo it will still return you directory path WorkDirectory\Foo.

Applies to