    

 ## On this page

  

 

 # Class PythonFunctionIntellisenseService

 Last update: 16.07.2025 

Namespace: [VM.Models.Pre](VM.Models.Pre.md)  
Assembly: VM.Models.Pre.dll

This class represents the service for supporting intellisense of user defined python code

```csharp
public static class PythonFunctionIntellisenseService

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [PythonFunctionIntellisenseService](VM.Models.Pre.PythonFunctionIntellisenseService.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Fields

### OnUpdatePythonModule

Raised when user defined python module is updated

```csharp
public static EventHandler OnUpdatePythonModule

```

#### Field Value

[EventHandler](https://learn.microsoft.com/dotnet/api/system.eventhandler)

## Methods

### GetImportStrings(IDocument, bool)

Gets python herder string to import user defined puthon codes.

```csharp
public static IEnumerable<string> GetImportStrings(IDocument document, bool includeAddToPathCommand = false)

```

#### Parameters

`document` [IDocument](VM.Models.Pre.IDocument.md)

The  of user defined python modules.

`includeAddToPathCommand` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

if true, include command to add path of module directory.

#### Returns

[IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;[string](https://learn.microsoft.com/dotnet/api/system.string)&gt;

The header strings.

### GetModulePath(IDocument)

Gets the path to the reorganized user defined python module

```csharp
public static string GetModulePath(IDocument document)

```

#### Parameters

`document` [IDocument](VM.Models.Pre.IDocument.md)

The  of user defined python modules.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

The path to the reorganized user defined python module.

### IsRegistered(IDocument)

```csharp
public static bool IsRegistered(IDocument document)

```

#### Parameters

`document` [IDocument](VM.Models.Pre.IDocument.md)

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Register(IDocument)

Register the .

```csharp
public static void Register(IDocument document)

```

#### Parameters

`document` [IDocument](VM.Models.Pre.IDocument.md)

the  to register.

#### Exceptions

[ArgumentNullException](https://learn.microsoft.com/dotnet/api/system.argumentnullexception)

Raised when document is null.