共用方式為


IPolicyCompatibility.GetBinaryFormatter Method

This is necessary if you want to create a new BinaryFormatter and hook into the serialization process for backward compatibility (e.g., you want to set the Binder property on the formatter to handle compat for a checkin policy that has been moved to another assembly).

If you do not want to hook into the serialization process, just return new BinaryFormatter().

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

Syntax

'Declaration
Function GetBinaryFormatter As BinaryFormatter
BinaryFormatter GetBinaryFormatter()
BinaryFormatter^ GetBinaryFormatter()
abstract GetBinaryFormatter : unit -> BinaryFormatter
function GetBinaryFormatter() : BinaryFormatter

Return Value

Type: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
the BinaryFormatter to use for serializing the policy

.NET Framework Security

See Also

Reference

IPolicyCompatibility Interface

Microsoft.TeamFoundation.VersionControl.Client Namespace