.NET Framework Class Library
File.FileSetProperty Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.FileSetProperty Method

Set a custom property on the target file.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function FileSetProperty ( _

fullFileName As String, _
cfgName As String, _
propertyName As String, _
propertyValue As String _
) As Boolean

C#

public bool FileSetProperty(

string fullFileName,
string cfgName,
string propertyName,
string propertyValue
)

Visual C++

public:

bool FileSetProperty(
String^ fullFileName,
String^ cfgName,
String^ propertyName,
String^ propertyValue
)

JavaScript

function fileSetProperty(fullFileName, cfgName, propertyName, propertyValue);

Parameters

fullFileName

Type: System.String
name of the target file

cfgName

Type: System.String
configuration where the property must be set

propertyName

Type: System.String
name of the property to set

propertyValue

Type: System.String
value of the property to set

Return Value

TRUE if the command succedeed, FALSE otherwise

Remarks

Available starting from R20 release.

See Also

File Class

File Members

MwPDMApi Namespace