SOLIDWORKS PDM Professional API Help Send Feedback
FileName Property (IEdmSearch5)
See Also  Example
EPDM.Interop.epdm Namespace > IEdmSearch5 Interface : FileName Property (IEdmSearch5)


Gets or sets the name of the file or folder for which to search.

Syntax

Visual Basic 
Property FileName As System.String
C# 
System.string FileName {get; set;}
C++/CLI 
property System.String^ FileName {
   System.String^ get();
   void set ( &   System.String^ value);
}

Property Value

Name of file or folder for which to search (see Remarks)

Example

See the IEdmSearch9 examples.

Example

Remarks

If the search object was obtained using:

  • IEdmVault5::CreateSearch, then the name may contain a % wildcard character. For example, %.txt searches for all text files.

% indicates any sequence of characters of any length. You can also use underscore (_) as a wildcard for exactly one arbitrary character.

To search for strings containing the actual characters '%' and '_', enclose them in brackets [...]:

     my[_]text[%]file.txt

You can also enclose the entire string in brackets, if no wildcards exist in it:

     [my_text%file.txt]

See Also

Availability

SOLIDWORKS PDM Professional Version 5.2