<commit_before>---
theme: cayman
layout: default
title: OptionObject2 Class
---

# OptionObject2

Namespace: ScriptLinkStandard.Objects

Assemblies: ScriptLinkStandard.dll

Defines the web service contract for use with myAvatar ScriptLink. Provides methods creating, manipulating, and searching OptionObject2 objects.

```c#
public class OptionObject2 : IEquatable<OptionObject2>, IOptionObject2
```

Implements [IEquatable&lt;T&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1?view=netstandard-1.1), [IOptionObject2](/docs/api/scriptlinkstandard.interfaces/ioptionobject2.md)

## Examples

The following code shows how to use OptionObject2 to construct a web service compatible with myAvatar.

```c#
using ScriptLinkStandard.Objects;
using System.Web.Services;

namespace ScriptLinkDemo.Web.Api
{
    /// <summary>
    /// Summary description for ScriptLinkController
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class ScriptLinkController : System.Web.Services.WebService
    {
        [WebMethod]<commit_msg>Update optionobject2.md<commit_after>---
theme: cayman
layout: default
title: OptionObject2 Class
---

# OptionObject2

Namespace: [ScriptLinkStandard.Objects](./)

Assemblies: ScriptLinkStandard.dll

Defines the web service contract for use with myAvatar ScriptLink. Provides methods creating, manipulating, and searching OptionObject2 objects.

```c#
public class OptionObject2 : IEquatable<OptionObject2>, IOptionObject2
```

Implements [IEquatable&lt;T&gt;](https://docs.microsoft.com/en-us/dotnet/api/system.iequatable-1?view=netstandard-1.1), [IOptionObject2](/docs/api/scriptlinkstandard.interfaces/ioptionobject2.md)

## Examples

The following code shows how to use OptionObject2 to construct a web service compatible with myAvatar.

```c#
using ScriptLinkStandard.Objects;
using System.Web.Services;

namespace ScriptLinkDemo.Web.Api
{
    /// <summary>
    /// Summary description for ScriptLinkController
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    public class ScriptLinkController : System.Web.Services.WebService
    {
        [WebMethod]
{'fraction_non_alphanumeric': 0.10975609756097561, 'fraction_numerical': 0.012195121951219513, 'mean_word_length': 4.962406015037594, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6434590', 'n_tokens_mistral': 711, 'n_tokens_neox': 698, 'n_words': 160}