Class StringData
StringData refers to a set of structures that convey user interface and path identification information. The presence of these optional structures is controlled by LinkFlags in the ShellLinkHeader.
Inherited Members
Namespace: SharpShellLink.Structures
Assembly: SharpShellLink.dll
Syntax
public class StringData : Structure
Constructors
| Edit this page View SourceStringData()
Constructor
Declaration
public StringData()
StringData(bool)
Constructor
Declaration
public StringData(bool IsUnicode)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | IsUnicode | Indicates whether wide chars should be used |
Properties
| Edit this page View SourceCommandLineArguments
COMMAND_LINE_ARGUMENTS: An optional structure that stores the command-line arguments that are specified when activating the link target. This structure MUST be present if the HasArguments flag is set.
Declaration
public string CommandLineArguments { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IconLocation
ICON_LOCATION: An optional structure that specifies the location of the icon to be used when displaying a shell link item in an icon view.This structure MUST be present if the HasIconLocation flag is set.
Declaration
public string IconLocation { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsUnicode
When set to true, wide chars will be used
Declaration
public bool IsUnicode { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MinimumBlockSize
headerBlockSize (4 bytes): A 32-bit, unsigned integer that specifies the size of the ExtraDataBlock structure.
Declaration
public override uint MinimumBlockSize { get; }
Property Value
| Type | Description |
|---|---|
| uint |
Overrides
| Edit this page View SourceNameString
NAME_STRING: An optional structure that specifies a description of the shortcut that is displayed to end users to identify the purpose of the shell link. This structure MUST be present if the HasName flag is set.
Declaration
public string NameString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RelativePath
RELATIVE_PATH: An optional structure that specifies the location of the link target relative to the file that contains the shell link. When specified, this string SHOULD be used when resolving the link. This structure MUST be present if the HasRelativePath flag is set.
Declaration
public string RelativePath { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StringDataSize
Total size in bytes of the StringData structure
Declaration
public int StringDataSize { get; }
Property Value
| Type | Description |
|---|---|
| int |
WorkingDir
WORKING_DIR: An optional structure that specifies the file system path of the working directory to be used when activating the link target. This structure MUST be present if the HasWorkingDir flag is set.
Declaration
public string WorkingDir { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetBytes()
Convert the Structure to a byte array
Declaration
public override byte[] GetBytes()
Returns
| Type | Description |
|---|---|
| byte[] | Byte array representation of the Structure |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |