Share via


ModelingAdapter.TrySetDocumentHandler Method

If the ModelingDocumentHandler is not already set (by the constructor for e.g.), then sets it to the value passed as a parameter. Otherwise, returns false.

Namespace:  Microsoft.VisualStudio.Modeling.Integration
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)

Syntax

'Declaration
Public Function TrySetDocumentHandler ( _
    documentHandler As ModelingDocumentHandler _
) As Boolean
public bool TrySetDocumentHandler(
    ModelingDocumentHandler documentHandler
)
public:
bool TrySetDocumentHandler(
    ModelingDocumentHandler^ documentHandler
)
member TrySetDocumentHandler : 
        documentHandler:ModelingDocumentHandler -> bool 
public function TrySetDocumentHandler(
    documentHandler : ModelingDocumentHandler
) : boolean

Parameters

Return Value

Type: System.Boolean
Bool to indicate if operation was a success

.NET Framework Security

See Also

Reference

ModelingAdapter Class

Microsoft.VisualStudio.Modeling.Integration Namespace