RdtManager.TrySetDocDataDirty Method
Sets the document data as dirty.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Shared Function TrySetDocDataDirty ( _
fileName As String, _
dirty As Boolean _
) As Boolean
'Usage
Dim fileName As String
Dim dirty As Boolean
Dim returnValue As Boolean
returnValue = RdtManager.TrySetDocDataDirty(fileName, _
dirty)
public static bool TrySetDocDataDirty(
string fileName,
bool dirty
)
public:
static bool TrySetDocDataDirty(
String^ fileName,
bool dirty
)
public static function TrySetDocDataDirty(
fileName : String,
dirty : boolean
) : boolean
static member TrySetDocDataDirty :
fileName:string *
dirty:bool -> bool
Parameters
- fileName
Type: System.String
The filename expected to be open and in the RDT
- dirty
Type: System.Boolean
Specifies whether to set the data as dirty
Return Value
Type: System.Boolean
Returns true if the document is in the RDT and successfully set the data as dirty, false otherwise.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Project Namespace