Share via


Workspace.AddIgnoreFileExclusion Method

Adds an ignore file exclusion to the specified .tfignore file.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntax

'Declaration
Public Sub AddIgnoreFileExclusion ( _
    fileSpecToExclude As String, _
    ignoreFileDirectory As String _
)
public void AddIgnoreFileExclusion(
    string fileSpecToExclude,
    string ignoreFileDirectory
)
public:
void AddIgnoreFileExclusion(
    String^ fileSpecToExclude, 
    String^ ignoreFileDirectory
)
member AddIgnoreFileExclusion : 
        fileSpecToExclude:string * 
        ignoreFileDirectory:string -> unit
public function AddIgnoreFileExclusion(
    fileSpecToExclude : String, 
    ignoreFileDirectory : String
)

Parameters

  • fileSpecToExclude
    Type: System.String

    Ignore glob to add to the .tfignore file

  • ignoreFileDirectory
    Type: System.String

    Directory whose .tfignore file should be used

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace