Condividi tramite


DesignerDocDataService.HasFile Method

Determines whether or not there is a DocData with a given fileName.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Dichiarazione
Public Function HasFile ( _
    fileName As String _
) As Boolean
'Utilizzo
Dim instance As DesignerDocDataService
Dim fileName As String
Dim returnValue As Boolean

returnValue = instance.HasFile(fileName)
public bool HasFile(
    string fileName
)
public:
bool HasFile(
    String^ fileName
)
member HasFile : 
        fileName:string -> bool 
public function HasFile(
    fileName : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the given file exists in the project, otherwise false.

.NET Framework Security

See Also

Reference

DesignerDocDataService Class

DesignerDocDataService Members

Microsoft.VisualStudio.Shell.Design.Serialization Namespace