[This is preliminary documentation and is subject to change.]
Method that creates a new ContentSpecification based on a physical file on the local filesystem.
Namespace: MultiArchive.SDK.ServiceUtils
Assembly: MultiArchive.SDK (in MultiArchive.SDK.dll) Version: 1.2.30.413 (1.2.30.413)
Syntax
C# |
public void AddContentSpecification(
FileSystemInfo content
)
|
Visual Basic |
Public Sub AddContentSpecification (
content As FileSystemInfo
)
|
Visual C++ |
public:
void AddContentSpecification(
FileSystemInfo^ content
)
|
Parameters
-
content
- Type: System.IO..::..FileSystemInfo
A reference to a physical file on the local filesystem which is to be attached to the created item.
Examples
C# |
Copy
|
class TestClass
{
public static void Main()
{
ItemSpecificationBuilder myBuilder = new ItemSpecificationBuilder();
FileInfo info = new FileInfo(@"C:\HelloWorld.txt");
myBuilder.AddContentSpecification(info);
}
}
|
Exceptions
See Also