public string Format(
bool fullValue
)
Public Function Format (
fullValue As Boolean
) As String
public:
String^ Format(
bool fullValue
)
member Format :
fullValue : bool -> string
If fullValue is set to False and FriendlyName is not null, OID friendly name is returned, otherwise returns Value.
If fullValue is set to True and FriendlyName is not null, method returns both, OID friendly name and value, otherwise returns Value.
Oid oid = new Oid("1.2.3.4.5");
oid.Format(false); // Format is extension method here.
// outputs: 1.2.3.4.5
oid.Format(true);
// outputs: 1.2.3.4.5 -- the same as previously, because the OID is unknown.
oid = new Oid("1.3.14.3.2.26");
oid.Format(false);
// outputs: sha1
oid.Format(true);
// outputs: sha1 (1.3.14.3.2.26)